Spock Web Console

subscribe to the feed Subscribe
Spock Bug triggered by AST (via #spockwebconsole)
tweet this script Tweet

Spock Bug triggered by AST

Published 11 months ago by Colin Harrington with tags spock
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import groovy.util.logging.Log
import spock.lang.Specification


@Log
class NimoyIssueSpec extends Specification {
    def "I think it is a spock bug"() {
        given:
            Closure sq = { x ->
                assert 1 == 1
                x * x
            }
        expect:
            sq(1) == 2
    }
}