summaryrefslogtreecommitdiff
path: root/spec/features/u2f_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-06-05 14:51:54 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-06-19 18:59:01 -0500
commit018ed2c42fc946592e2b72d2e74710e509df0199 (patch)
tree81aa1cedbe184d2e9399c045583fb8b0761d8bb4 /spec/features/u2f_spec.rb
parent45fb1f9542fc258d8671c82843d681277ae4aa89 (diff)
downloadgitlab-ce-018ed2c42fc946592e2b72d2e74710e509df0199.tar.gz
Change `login_with` uses to `gitlab_sign_in`
Change single `login_via` use to `gitlab_sign_in_via`
Diffstat (limited to 'spec/features/u2f_spec.rb')
-rw-r--r--spec/features/u2f_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/u2f_spec.rb b/spec/features/u2f_spec.rb
index 02696841628..c2b957b2962 100644
--- a/spec/features/u2f_spec.rb
+++ b/spec/features/u2f_spec.rb
@@ -158,7 +158,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
describe "when 2FA via OTP is disabled" do
it "allows logging in with the U2F device" do
user.update_attribute(:otp_required_for_login, false)
- login_with(user)
+ gitlab_sign_in(user)
@u2f_device.respond_to_u2f_authentication
@@ -170,7 +170,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
describe "when 2FA via OTP is enabled" do
it "allows logging in with the U2F device" do
user.update_attribute(:otp_required_for_login, true)
- login_with(user)
+ gitlab_sign_in(user)
@u2f_device.respond_to_u2f_authentication
@@ -180,7 +180,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
end
it 'persists remember_me value via hidden field' do
- login_with(user, remember: true)
+ gitlab_sign_in(user, remember: true)
@u2f_device.respond_to_u2f_authentication
expect(page).to have_content('We heard back from your U2F device')
@@ -308,7 +308,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
describe 'when no u2f device is registered' do
before do
logout
- login_with(user)
+ gitlab_sign_in(user)
end
it 'shows the fallback otp code UI' do
@@ -321,7 +321,7 @@ feature 'Using U2F (Universal 2nd Factor) Devices for Authentication', :js do
manage_two_factor_authentication
@u2f_device = register_u2f_device
logout
- login_with(user)
+ gitlab_sign_in(user)
end
it 'provides a button that shows the fallback otp code UI' do