Created
December 30, 2014 19:46
-
-
Save rgm/5457027ffa316cc79ac3 to your computer and use it in GitHub Desktop.
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
def login_as (tenant, role) | |
unless $logged_in_as == [tenant, role] | |
step 'I am on the login page' | |
step 'I sign in as a ' + tenant + ' ' + role | |
step 'I click "Log In"' | |
step 'I sign in as a ' + tenant + ' ' + role | |
step 'I click "Log In"' | |
find 'div.dashboard' | |
$logged_in_as = [tenant, role] | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment