-
-
Save aslakhellesoy/49718 to your computer and use it in GitHub Desktop.
This file contains 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
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