diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-06 22:20:39 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-13 19:01:48 +0900 |
commit | ea6b7a08409bf7f2539d1b9dc8f4e8a208619ea7 (patch) | |
tree | ccc87e476ce164d91c7773ebe8ed78a82ef15013 /test | |
parent | 635c9e49553746dd487fa28884387895ee6c0d77 (diff) | |
download | ruby-openssl-ea6b7a08409bf7f2539d1b9dc8f4e8a208619ea7.tar.gz |
test/test_cipher: fix an assertion
The message may change depending on the value of OpenSSL.debug.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cipher.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_cipher.rb b/test/test_cipher.rb index 2c747caa..1c6c8586 100644 --- a/test/test_cipher.rb +++ b/test/test_cipher.rb @@ -116,8 +116,7 @@ class OpenSSL::TestCipher < OpenSSL::TestCase begin assert_kind_of(OpenSSL::Cipher, OpenSSL::Cipher.new(name)) rescue OpenSSL::Cipher::CipherError => e - next if /wrap/ =~ name and e.message == 'wrap mode not allowed' - raise + raise unless /wrap/ =~ name and /wrap mode not allowed/ =~ e.message end } end |