test/symmetric_encryption_test.rb in symmetric-encryption-4.1.0.beta1 vs test/symmetric_encryption_test.rb in symmetric-encryption-4.1.0
- old
+ new
@@ -4,11 +4,11 @@
#
class SymmetricEncryptionTest < Minitest::Test
describe 'SymmetricEncryption' do
describe 'configuration' do
before do
- config = SymmetricEncryption::Config.new(
+ config = SymmetricEncryption::Config.new(
file_name: File.join(File.dirname(__FILE__), 'config', 'symmetric-encryption.yml'),
env: 'test'
)
@ciphers = config.ciphers
@@ -144,10 +144,10 @@
describe 'without select_cipher' do
before do
@social_security_number = '987654321'
# Encrypt data without a header and encode with base64 which has a trailing '\n'
- no_header = SymmetricEncryption.cipher(0).binary_encrypt(@social_security_number, header: false)
+ no_header = SymmetricEncryption.cipher(0).binary_encrypt(@social_security_number, header: false)
assert @encrypted_0_ssn = SymmetricEncryption.cipher(0).encode(no_header)
end
it 'decrypt string without a header using an old cipher' do
assert_raises OpenSSL::Cipher::CipherError do