test/keystore_test.rb in symmetric-encryption-4.0.0 vs test/keystore_test.rb in symmetric-encryption-4.0.1

- old
+ new

@@ -12,11 +12,11 @@ `rm tmp/tester* 2>/dev/null` end describe '.rotate_keys' do let :environments do - %i(development test acceptance preprod production) + %i[development test acceptance preprod production] end let :config do SymmetricEncryption::Keystore::File.new_config( key_path: 'tmp', @@ -38,11 +38,11 @@ rolling_deploy: rolling_deploy ) end it 'creates an encrypted key file for all non-test environments' do - (environments - %i(development test)).each do |env| + (environments - %i[development test]).each do |env| assert key_rotation 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}" @@ -51,9 +51,8 @@ assert File.exist?(file_name) assert_equal 2, new_config[:version] end end end - end end end