Skip to content

Commit 57517e5

Browse files
author
newtrat
committed
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.
1 parent 68f407c commit 57517e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ def instance.send_two_factor_authentication_code(code)
289289
value: 'testing',
290290
key: Devise.otp_secret_encryption_key,
291291
iv: iv.unpack('m').first,
292-
salt: salt.unpack('m').first
292+
salt: salt.unpack('m').first,
293+
algorithm: 'aes-256-cbc'
293294
)
294295

295296
expect(instance.encrypted_otp_secret_key).to eq [encrypted].pack('m')

0 commit comments

Comments
 (0)