@@ -903,26 +903,26 @@ each at addition time whether it is attached to the method interceptor or the ot
903903----
904904class I extends AbstractMethodInterceptor { I(def s) {} }
905905
906- // On SpecInfo
906+ // on SpecInfo
907907specInfo.addSharedInitializerInterceptor new I('shared initializer')
908- specInfo.sharedInitializerMethod? .addInterceptor new I('shared initializer method')
908+ specInfo.specsBottomToTop*. sharedInitializerMethod* .addInterceptor new I('shared initializer method')
909909specInfo.addInterceptor new I('specification')
910910specInfo.addSetupSpecInterceptor new I('setup spec')
911- specInfo.setupSpecMethods*.addInterceptor new I('setup spec method')
911+ specInfo.specsBottomToTop.collectMany { it. setupSpecMethods } *.addInterceptor new I('setup spec method')
912912specInfo.allFeatures*.addInterceptor new I('feature')
913913specInfo.addInitializerInterceptor new I('initializer')
914- specInfo.initializerMethod? .addInterceptor new I('initializer method')
914+ specInfo.specsBottomToTop*. initializerMethod* .addInterceptor new I('initializer method')
915915specInfo.allFeatures*.addIterationInterceptor new I('iteration')
916916specInfo.addSetupInterceptor new I('setup')
917- specInfo.setupMethods*.addInterceptor new I('setup method')
917+ specInfo.specsBottomToTop.collectMany { it. setupMethods } *.addInterceptor new I('setup method')
918918specInfo.allFeatures*.featureMethod*.addInterceptor new I('feature method')
919919specInfo.addCleanupInterceptor new I('cleanup')
920- specInfo.cleanupMethods*.addInterceptor new I('cleanup method')
920+ specInfo.specsBottomToTop.collectMany { it. cleanupMethods } *.addInterceptor new I('cleanup method')
921921specInfo.addCleanupSpecInterceptor new I('cleanup spec')
922- specInfo.cleanupSpecMethods*.addInterceptor new I('cleanup spec method')
922+ specInfo.specsBottomToTop.collectMany { it. cleanupSpecMethods } *.addInterceptor new I('cleanup spec method')
923923specInfo.allFixtureMethods*.addInterceptor new I('fixture method')
924924
925- // on FeatureInfo
925+ // on FeatureInfo (already included above, handling all features)
926926featureInfo.addInterceptor new I('feature')
927927featureInfo.addIterationInterceptor new I('iteration')
928928featureInfo.featureMethod.addInterceptor new I('feature method')
0 commit comments