Skip to content

Instantly share code, notes, and snippets.

@antony
Created March 8, 2012 16:50
Show Gist options
  • Save antony/2002027 to your computer and use it in GitHub Desktop.
Save antony/2002027 to your computer and use it in GitHub Desktop.
Spock Formatting
def "The 'recommended' way"() {
when:
enabled = true
firstName = "Luke"
lastName = "Daley"
createButton.click()
then:
at ShowPage
}
def "The 'readable' way"() {
when:
enabled = true
firstName = "Luke"
lastName = "Daley"
createButton.click()
then:
at ShowPage
}
@antony
Copy link
Author

antony commented Mar 9, 2012

Nice. Saves me doing it! Thanks @tomaslin

@bodiam
Copy link

bodiam commented Oct 29, 2015

Label indents. In 2011. Crazy people.

@antony
Copy link
Author

antony commented Aug 29, 2016

Indents ftw @bodiam!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment