Browse Source

Add new encryption algorithm to Encryptor test

Since  now always includes ,
the test for passing the correct options to Encryptor should also include
that option.
master
newtrat 8 years ago
parent
commit
57517e5a05
  1. 3
      spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb

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

@ -289,7 +289,8 @@ describe Devise::Models::TwoFactorAuthenticatable do
value: 'testing',
key: Devise.otp_secret_encryption_key,
iv: iv.unpack('m').first,
salt: salt.unpack('m').first
salt: salt.unpack('m').first,
algorithm: 'aes-256-cbc'
)
expect(instance.encrypted_otp_secret_key).to eq [encrypted].pack('m')

Loading…
Cancel
Save