diff options
Diffstat (limited to 'features/steps/shared/authentication.rb')
| -rw-r--r-- | features/steps/shared/authentication.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/features/steps/shared/authentication.rb b/features/steps/shared/authentication.rb index df05754c287..b8c11ce0a23 100644 --- a/features/steps/shared/authentication.rb +++ b/features/steps/shared/authentication.rb @@ -12,6 +12,14 @@ module SharedAuthentication login_as :admin end + step 'I sign in as "John Doe"' do + login_with(user_exists("John Doe")) + end + + step 'I sign in as "Mary Jane"' do + login_with(user_exists("Mary Jane")) + end + step 'I should be redirected to sign in page' do current_path.should == new_user_session_path end |
