diff --git a/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy b/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy index 8e77e34d27..cdb090bec3 100644 --- a/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy +++ b/spock-specs/src/test/groovy/org/spockframework/smoke/Interceptors.groovy @@ -238,6 +238,9 @@ class FooSpec extends Specification { assert method assert !method.reflection assert !method.name + instance.specificationContext.with { + assert currentSpec + } } } @@ -251,6 +254,9 @@ class FooSpec extends Specification { assert method assert method.reflection assert method.name + instance.specificationContext.with { + assert currentSpec + } } } @@ -264,6 +270,9 @@ class FooSpec extends Specification { assert method assert !method.reflection assert !method.name + instance.specificationContext.with { + assert currentSpec + } } } @@ -277,6 +286,9 @@ class FooSpec extends Specification { assert method assert !method.reflection assert !method.name + instance.specificationContext.with { + assert currentSpec + } } } @@ -290,6 +302,9 @@ class FooSpec extends Specification { assert method assert method.reflection assert method.name + instance.specificationContext.with { + assert currentSpec + } } }