Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apply plugin: 'eclipse'
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
groovy "org.codehaus.groovy:groovy-all:2.0.5"
testCompile 'org.apache.ivy:ivy:2.2.0-rc1'
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
}
@Grab('org.spockframework:spock-core:0.7-groovy-2.0')
class HelloSpock extends spock.lang.Specification {
def "length of Spock's and his friends' names"() {
expect:
name.size() == length
where:
name | length
"Spock" | 5
"Kirk" | 4
"Scotty" | 6
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.