Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"
Add Comment
Please, Sign In to add comment