test/writer_test.rb in symmetric-encryption-2.2.0 vs test/writer_test.rb in symmetric-encryption-3.0.0
- old
+ new
@@ -20,10 +20,14 @@
"Keep this secret\n",
"And keep going even further and further..."
]
@data_str = @data.inject('') {|sum,str| sum << str}
@data_len = @data_str.length
+ cipher = SymmetricEncryption.cipher
+ before = cipher.always_add_header
+ cipher.always_add_header = false
@data_encrypted = SymmetricEncryption.cipher.binary_encrypt(@data_str, false, false)
+ cipher.always_add_header = before
@filename = '._test'
end
teardown do
File.delete(@filename) if File.exist?(@filename)