diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-09-23 12:15:07 +0300 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-15 09:27:24 +0300 |
commit | 83fb1190205c3d1fbe16a684794ed1af10ed1bff (patch) | |
tree | e77f83fb508edf3f900ceb5031c3fc69d8ee7e59 /spec/support/login_helpers.rb | |
parent | 00bfb645e16b24ce929211bf5080aa3083f8543b (diff) |
Get tests passing.
Diffstat (limited to 'spec/support/login_helpers.rb')
-rw-r--r-- | spec/support/login_helpers.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index c0b3e83244d..3e90c95918c 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -33,7 +33,9 @@ module LoginHelpers fill_in "user_login", with: user.email fill_in "user_password", with: "12345678" check 'user_remember_me' if remember - click_button "Sign in" + page.within '.login-box' do + click_button "Sign in" + end Thread.current[:current_user] = user end |