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