Created
March 8, 2012 16:50
-
-
Save antony/2002027 to your computer and use it in GitHub Desktop.
Spock Formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. Saves me doing it! Thanks @tomaslin