diff --git a/spock-specs/src/test/groovy/org/spockframework/smoke/CompileTimeErrorReporting.groovy b/spock-specs/src/test/groovy/org/spockframework/smoke/CompileTimeErrorReporting.groovy index 92fbe70763..8ca6f2a051 100644 --- a/spock-specs/src/test/groovy/org/spockframework/smoke/CompileTimeErrorReporting.groovy +++ b/spock-specs/src/test/groovy/org/spockframework/smoke/CompileTimeErrorReporting.groovy @@ -16,25 +16,8 @@ package org.spockframework.smoke import org.spockframework.EmbeddedSpecification import org.spockframework.compiler.InvalidSpecCompileException -import org.spockframework.runtime.GroovyRuntimeUtil -import org.spockframework.runtime.WrongExceptionThrownError -import spock.lang.PendingFeature -import spock.lang.Requires class CompileTimeErrorReporting extends EmbeddedSpecification { - @Requires({ GroovyRuntimeUtil.isGroovy2() }) - def "constructor declaration (Groovy 2)"() { - when: - compiler.compileSpecBody """ -ASpec() {} - """ - - then: - thrown(InvalidSpecCompileException) - } - - @Requires({ GroovyRuntimeUtil.isGroovy3() }) //TODO: Unify tests while fixed for Groovy 3 - @PendingFeature(exceptions = WrongExceptionThrownError, reason = "SpecParser.constructorMayHaveBeenAddedByCompiler no longer detect constructor. To be fixed.") def "constructor declaration"() { when: compiler.compileSpecBody """