From 1bae87bc1e9697cd0e2bc0a395f894799977b039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Tue, 25 Apr 2023 11:14:15 +0200 Subject: [PATCH] Verify the specification is given to specification context --- .../org/spockframework/smoke/Interceptors.groovy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 + } } }