Skip to content

Instantly share code, notes, and snippets.

@uris77
Created November 21, 2012 03:15
Show Gist options
  • Select an option

  • Save uris77/4122792 to your computer and use it in GitHub Desktop.

Select an option

Save uris77/4122792 to your computer and use it in GitHub Desktop.
Nested Definitions in Spock
def "parse page offset request"(){
scenario "should return default OFFSET when no value is present"
given:
when:
then:
scenario "should return the integer representation of the present value"
given:
when:
then:
scenario: "should return the default OFFSET if a non numeric value is present"
given:
when:
then:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment