diff options
author | Job van der Voort <jobvandervoort@gmail.com> | 2015-04-21 17:21:51 +0300 |
---|---|---|
committer | Job van der Voort <jobvandervoort@gmail.com> | 2015-04-21 17:21:51 +0300 |
commit | a8e93b7f51d968c1380ed210499869b62b07fd15 (patch) | |
tree | c864e80dfd9cf4f83fcede678acc986e3a125bf5 /spec/support/login_helpers.rb | |
parent | 0625b15a481b3a3edd88110b3c18031ad9068d2f (diff) |
Version 7.10.0.rc5v7.10.0.rc5
Diffstat (limited to 'spec/support/login_helpers.rb')
-rw-r--r-- | spec/support/login_helpers.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb deleted file mode 100644 index 791d2a1fd64..00000000000 --- a/spec/support/login_helpers.rb +++ /dev/null @@ -1,26 +0,0 @@ -module LoginHelpers - # Internal: Create and log in as a user of the specified role - # - # role - User role (e.g., :admin, :user) - def login_as(role) - @user = create(role) - - login_with(@user) - end - - # Internal: Login as the specified user - # - # user - User instance to login with - def login_with(user) - visit new_user_session_path - fill_in "user_login", with: user.email - fill_in "user_password", with: "12345678" - click_button "Sign in" - Thread.current[:current_user] = user - end - - # Requires Javascript driver. - def logout - find(:css, ".fa.fa-sign-out").click - end -end |