Skip to content

Instantly share code, notes, and snippets.

@bols-blue
Created March 17, 2013 15:38
Show Gist options
  • Save bols-blue/5182076 to your computer and use it in GitHub Desktop.
Save bols-blue/5182076 to your computer and use it in GitHub Desktop.
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