Skip to content

Instantly share code, notes, and snippets.

@bols-blue
Created March 17, 2013 15:38

Revisions

  1. bols-blue created this gist Mar 17, 2013.
    12 changes: 12 additions & 0 deletions build.gradle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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"
    }
    14 changes: 14 additions & 0 deletions first_step2.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    @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
    }
    }