diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-02-21 19:55:42 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-02-21 19:55:42 +0300 |
commit | 7e0507dc257199f6f80a7a52f19393bf063befca (patch) | |
tree | 685f14b4cbbd896bd075d5e2385e918d8f04f76d /spec/javascripts/fixtures | |
parent | dc9366dd310000ca9fb3a2cf14b03ff01a9f1fc2 (diff) |
Make fixtures/u2f.rb deterministic
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/u2f.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/fixtures/u2f.rb b/spec/javascripts/fixtures/u2f.rb index f0aa874bf75..5cdbadef639 100644 --- a/spec/javascripts/fixtures/u2f.rb +++ b/spec/javascripts/fixtures/u2f.rb @@ -3,7 +3,7 @@ require 'spec_helper' context 'U2F' do include JavaScriptFixturesHelpers - let(:user) { create(:user, :two_factor_via_u2f) } + let(:user) { create(:user, :two_factor_via_u2f, otp_secret: 'otpsecret:coolkids') } before(:all) do clean_frontend_fixtures('u2f/') @@ -33,6 +33,7 @@ context 'U2F' do before do sign_in(user) + allow_any_instance_of(Profiles::TwoFactorAuthsController).to receive(:build_qr_code).and_return('qrcode:blackandwhitesquares') end it 'u2f/register.html.raw' do |example| |