Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created November 17, 2008 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save patmaddox/25806 to your computer and use it in GitHub Desktop.
Save patmaddox/25806 to your computer and use it in GitHub Desktop.
When player wins he should be paid 1-1
When player loses, he is not paid
When player has blackjack, he is paid 1.5-1
Scenario: <Scenario title>
Given <some known state>
And <some more known state>
When <I do something>
Then <some desired outcome>
And <some desired outcome>
Scenario: Customer chooses free shipping
Given a shopping cart total of $100
When I check out
Then I should see an offer for free shipping
When I choose free shipping
And I submit the order
Then the order total should be $100
Scenario: Customer chooses express shipping
Given a shopping cart total of $100
When I check out
Then I should see an offer for free shipping
When I choose express shipping
And I submit the order
Then the order total should be $125
Scenario: Customer checks out
Given a shopping cart total of $100
When I press the submit button
Then the order should be in the database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment