Skip to content

Instantly share code, notes, and snippets.

@moonmaster9000
Created November 24, 2012 20:10
Show Gist options
  • Save moonmaster9000/4141233 to your computer and use it in GitHub Desktop.
Save moonmaster9000/4141233 to your computer and use it in GitHub Desktop.
Imperative Tweet Feature
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