Browse Source

fixed spec with provisioning_uri

master
Eugene Surzhko 9 years ago
parent
commit
9fd666ce04
  1. 2
      spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb

2
spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb

@ -114,7 +114,7 @@ describe Devise::Models::TwoFactorAuthenticatable do
expect(uri.scheme).to eq('otpauth') expect(uri.scheme).to eq('otpauth')
expect(uri.host).to eq('totp') expect(uri.host).to eq('totp')
expect(uri.path).to eq('/houdini') expect(uri.path).to eq('/Magic:houdini')
expect(params['issuer'].shift).to eq('Magic') expect(params['issuer'].shift).to eq('Magic')
expect(params['secret'].shift).to match(/\w{16}/) expect(params['secret'].shift).to match(/\w{16}/)
end end

Loading…
Cancel
Save