diff --git a/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy b/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy index d3f37399c2..5b026ce8dd 100644 --- a/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy +++ b/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy @@ -57,7 +57,7 @@ class SingleTestGeneratorSpec extends Specification { String clazz = testGenerator.buildClass([contract], "test", "test") then: - classStrings.forEach({ clazz.contains(it) }) + classStrings.each { clazz.contains(it) } where: testFramework | classStrings @@ -80,7 +80,7 @@ class SingleTestGeneratorSpec extends Specification { String clazz = testGenerator.buildClass([contract], "test", "test") then: - classStrings.forEach({ clazz.contains(it) }) + classStrings.each { clazz.contains(it) } where: testFramework | classStrings