Skip to content

Instantly share code, notes, and snippets.

@jsmestad
Created January 20, 2009 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsmestad/49714 to your computer and use it in GitHub Desktop.
Save jsmestad/49714 to your computer and use it in GitHub Desktop.
Given /^I am logged in as "(.+)"$/ do |user|
Given "a user exists with login \"#{user}\" and password \"thedude\""
Given "I go to /login"
Given "I fill in \"login\" with \"#{user}\""
Given "I fill in \"password\" with \"thedude\""
Given "I press \"Login\""
end
Scenario Outline: Shortcode Generated
Given a user exists with login "bobdole" and password "thedude"
And I am logged in as "jon"
When I go to /users
Then I should see "<shortcode>"
Examples:
| shortcode |
| @bobdole |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment