From 6278da3f41a05db2501c7afecf1d80ee8f766a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Thu, 6 Feb 2020 12:53:55 +0100 Subject: [PATCH] Re-enable one test in CompileTimeErrorReporting Fixed meanwhile in a separate branch. --- .../smoke/CompileTimeErrorReporting.groovy | 17 ----------------- 1 file changed, 17 deletions(-) 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 """