test/cipher_test.rb in symmetric-encryption-3.6.0 vs test/cipher_test.rb in symmetric-encryption-3.7.0

- old
+ new

@@ -1,10 +1,10 @@ -require File.dirname(__FILE__) + '/test_helper' +require_relative 'test_helper' # Unit Test for SymmetricEncryption::Cipher # -class CipherTest < Test::Unit::TestCase +class CipherTest < Minitest::Test context 'standalone' do should "allow setting the cipher_name" do cipher = SymmetricEncryption::Cipher.new( cipher_name: 'aes-128-cbc', @@ -34,10 +34,10 @@ cipher_name: 'aes-128-cbc', key: '1234567890ABCDEF1234567890ABCDEF', iv: '1234567890ABCDEF', encoding: :none ) - assert_raise OpenSSL::Cipher::CipherError do + assert_raises OpenSSL::Cipher::CipherError do cipher.decrypt('bad data') end end end \ No newline at end of file