Skip to content

Instantly share code, notes, and snippets.

@pniederw
Forked from anonymous/file.txt
Created July 27, 2010 01:10
Show Gist options
  • Save pniederw/491551 to your computer and use it in GitHub Desktop.
Save pniederw/491551 to your computer and use it in GitHub Desktop.
@Stepwise
class ASpecThatBuysAProduct extends Specification {
abstract buyProduct(product) {
when:
to ProductsPage
buy(this.product)
then:
at CartPage
}
def "buy the product"() {
steps:
buyProduct(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