Created
July 27, 2010 01:09
-
-
Save anonymous/491549 to your computer and use it in GitHub Desktop.
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
class BuyProductStory extends spock.lang.Story { | |
@Shared product | |
def "buy product"() { | |
when: | |
to ProductsPage | |
buy(this.product) | |
then: | |
at CartPage | |
} | |
} | |
@Stepwise | |
class ASpecThatBuysAProduct extends Specification { | |
// some feature methods | |
def "buy the product"() { | |
story: | |
BuyProductStory, product: Product.get(2) | |
} | |
// some other feature methods | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment