Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Forked from patrick99e99/edit_request.feature
Created October 5, 2011 17:49
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aslakhellesoy/1265136 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/1265136 to your computer and use it in GitHub Desktop.
Refactored from imperative to declarative
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: Logged in via facebook with one request
Given I am logged in with facebook
And I have a request for "Dragon's Lair Arcade Game" at $2000
Scenario: Logged in users can edit requests
When I change the request to "iPhone6" at $300
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 be able to modify any requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment