Skip to content

Instantly share code, notes, and snippets.

@antony
Created March 8, 2012 16:50
Show Gist options
  • Select an option

  • Save antony/2002027 to your computer and use it in GitHub Desktop.

Select an option

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

antony commented Mar 9, 2012

Copy link
Copy Markdown
Author

Nice. Saves me doing it! Thanks @tomaslin

@bodiam

bodiam commented Oct 29, 2015

Copy link
Copy Markdown

Label indents. In 2011. Crazy people.

@antony

antony commented Aug 29, 2016

Copy link
Copy Markdown
Author

Indents ftw @bodiam!

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