diff options
-rw-r--r-- | test/openssl/test_cipher.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index 954963acc5..6f92c381cf 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -107,10 +107,7 @@ class OpenSSL::TestCipher < Test::Unit::TestCase begin assert_kind_of(OpenSSL::Cipher::Cipher, OpenSSL::Cipher::Cipher.new(name)) rescue OpenSSL::Cipher::CipherError => e - if e.message == 'wrap mode not allowed' - assert_match(/wrap\z/, name, e.message) - next - end + next if /wrap/ =~ name and e.message == 'wrap mode not allowed' raise end } |