Skip to content

Commit 001fed4

Browse files
AndreasTuVampire
andauthored
Update spock-specs/src/test/groovy/org/spockframework/smoke/mock/GroovySpiesThatAreGlobal.groovy
Co-authored-by: Björn Kautler <[email protected]>
1 parent b6b32d0 commit 001fed4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spock-specs/src/test/groovy/org/spockframework/smoke/mock/GroovySpiesThatAreGlobal.groovy

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,9 +1701,13 @@ class GroovySpiesThatAreGlobal extends Specification {
17011701
}
17021702

17031703
static class Enclosing {
1704-
private static String ENCLOSING_FIELD = "enclosing"
1705-
public static String PUBLIC_ENCLOSING_FIELD = "public enclosing"
1706-
static String ENCLOSING_PROPERTY = "enclosing property"
1704+
private static String ENCLOSING_FIELD
1705+
public static String PUBLIC_ENCLOSING_FIELD
1706+
static String ENCLOSING_PROPERTY
1707+
1708+
static {
1709+
resetStatics()
1710+
}
17071711

17081712
static void resetStatics() {
17091713
ENCLOSING_FIELD = "enclosing"

0 commit comments

Comments
 (0)