test/keystore_test.rb in symmetric-encryption-4.1.0.beta1 vs test/keystore_test.rb in symmetric-encryption-4.1.0
- old
+ new
@@ -6,11 +6,11 @@
let :keystore do
SymmetricEncryption::Keystore::File.new(file_name: 'tmp/tester.key', key_encrypting_key: SymmetricEncryption::Key.new)
end
let :the_test_path do
- path = "tmp/keystore_test"
+ path = 'tmp/keystore_test'
FileUtils.makedirs(path) unless ::File.exist?(path)
path
end
after do
@@ -117,10 +117,10 @@
assert key_rotation[env.to_sym], key_rotation
assert key_rotation[env.to_sym][:ciphers]
assert ciphers = key_rotation[env.to_sym][:ciphers], "Environment #{env} is missing ciphers: #{key_rotation[env.to_sym].inspect}"
assert_equal 2, ciphers.size, "Environment #{env}: #{ciphers.inspect}"
assert new_config = ciphers.first
- assert file_name = new_config[:key_filename], "Environment #{env} is missing key_filename: #{ciphers.inspect}"
+ assert file_name = new_config[:key_filename], "Environment #{env} is missing key_filename: #{ciphers.inspect}"
assert File.exist?(file_name)
assert_equal 2, new_config[:version]
end
end
end