Created
November 24, 2012 20:10
-
-
Save moonmaster9000/4141233 to your computer and use it in GitHub Desktop.
Imperative Tweet Feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Valid tweet | |
Given there is a user "bob" with password "password" | |
And there is a user "alice" with password "password" | |
And I visit "/" | |
And I fill in "username" with "bob" | |
And I fill in "password" with "password" | |
And I click "Log in" | |
When I fill in "Tweet" with "this is a test tweet noise noise noise noise noise noise noise noise noise noise noise noise noise noise noise noise haha I'm less than 140 characters." | |
And I click "Submit" | |
Then I should see "Your tweet was submitted" | |
When I visit "/bob" | |
Then I should see "this is a test tweet noise noise noise noise noise noise noise noise noise noise noise noise noise noise noise noise haha I'm less than 140 characters." | |
When I click "Log out" | |
And I visit "/" | |
And I fill in "username" with "alice" | |
And I fill in "password" with "password" | |
And I click "Log in" | |
Then I should see "this is a test tweet noise noise noise noise noise noise noise noise noise noise noise noise noise noise noise noise haha I'm less than 140 characters." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment