summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/support/login_helpers.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb
index 3e90c95918c..ea9edc85248 100644
--- a/spec/support/login_helpers.rb
+++ b/spec/support/login_helpers.rb
@@ -33,9 +33,7 @@ module LoginHelpers
fill_in "user_login", with: user.email
fill_in "user_password", with: "12345678"
check 'user_remember_me' if remember
- page.within '.login-box' do
- click_button "Sign in"
- end
+ first('.login-box').click_button('Sign in')
Thread.current[:current_user] = user
end