Skip to content

Instantly share code, notes, and snippets.

@patrick99e99
Created October 5, 2011 17:41
Show Gist options
  • Save patrick99e99/1265118 to your computer and use it in GitHub Desktop.
Save patrick99e99/1265118 to your computer and use it in GitHub Desktop.
Feature: Updating an existing request
In order to change my mind about what I need
I want to be able to edit my Request
Background:
Given I am logged in with facebook
And I go to the new request page
And I fill in the following:
| I want | Dragon's Lair Arcade Game |
| for | 2000 |
And I select the category "Stuff"
And I complete the request
Scenario: Logged in users can edit requests
When I click the edit request button
And I fill in the following:
| I want | iPhone6 |
| I'll pay | 300 |
And I select the category "Phones & Electronics"
And I update the request
Then I should see "Requested: iPhone6"
And I should see "Reward: $300"
Scenario: Logged out users cannot edit requests
When I log out
Then I should not see the edit request button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment