From 57517e5a05d15333f17627126f9b3874095d27cf Mon Sep 17 00:00:00 2001 From: newtrat Date: Tue, 14 Mar 2017 19:47:02 -0400 Subject: [PATCH] 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. --- .../models/two_factor_authenticatable_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb b/spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb index 272d0cf..4197b43 100644 --- a/spec/lib/two_factor_authentication/models/two_factor_authenticatable_spec.rb +++ b/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')