test/symmetric_encryption_test.rb in symmetric-encryption-2.0.0 vs test/symmetric_encryption_test.rb in symmetric-encryption-2.0.1
- old
+ new
@@ -105,10 +105,10 @@
assert encrypted = SymmetricEncryption.encrypt(@social_security_number, true)
assert_equal true, SymmetricEncryption.encrypted?(encrypted)
assert_equal @social_security_number, SymmetricEncryption.decrypt(encrypted)
end
- should "encrypt and then decrypt using random iv" do
+ should "encrypt and then decrypt using random iv with compression" do
# Encrypt with random iv and compress
assert encrypted = SymmetricEncryption.encrypt(@social_security_number, true, true)
assert_equal true, SymmetricEncryption.encrypted?(encrypted)
assert_equal @social_security_number, SymmetricEncryption.decrypt(encrypted)
end