Skip to content

Instantly share code, notes, and snippets.

@ratnikov
Created September 15, 2009 18:31
Show Gist options
  • Save ratnikov/187515 to your computer and use it in GitHub Desktop.
Save ratnikov/187515 to your computer and use it in GitHub Desktop.
Feature: Beer Donations
In order to donate a beer
A user
Should be signed_in
Background:
Given user@example.com is a user with password "secret"
Scenario: A registered user should be able to donate a beer to another registered user
Given someone@example.com is a user
And I log in as user@example.com with password "secret"
When I go to my homepage page
And I click on "donate a beer"
And I fill in "recipient" with "someone@example.com"
And I click on submit
Then I should see "Beer Donation sent"
And user "someone@example.com" should have a beer donation from "user@example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment