Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Forked from jsmestad/common_features.feature
Created January 20, 2009 22:56
Show Gist options
  • Save aslakhellesoy/49718 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/49718 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