Skip to content

Commit

Permalink
Re-enable one test in CompileTimeErrorReporting
Browse files Browse the repository at this point in the history
Fixed meanwhile in a separate branch.
  • Loading branch information
szpak committed Feb 6, 2020
1 parent 72ae328 commit 6278da3
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit 6278da3

Please sign in to comment.