zdennis (owner)

Revisions

gist: 200140 Download_button fork
public
Public Clone URL: git://gist.github.com/200140.git
Embed All Files: show embed
user_making_a_purchase.feature #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Scenario: User making a purchases decreases their balance
  Given there is a "Foo" widget that costs $75
  Given "Joe" is a user with a $100 balance
  And I am logged in as "Joe"
  When I purchase "Foo" widget
  Then I should see "Successfully purchased a Foo widget"
  
  When I go my profile page
  Then I should see my balance is $25
  
Scenario: User cannot make purchases that cost more than their balance
  Given there is a "Foo" widget that costs $75
  Given "Joe" is a user with a $25 balance
  And I am logged in as "Joe"
  When I purchase "Foo" widget
  Then I should see "You don't have enough money to purchase a Foo widget"