diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2025-04-03 22:02:04 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-04-03 17:58:29 +0000 |
| commit | 3911113bc4d441d01ad888fbaaee494c9386ebe0 (patch) | |
| tree | b456565985dfc03cf2921d1a7ddb1edb72ce345c /test | |
| parent | 137b51e4d3dff93e0101f776ac05af63aca9b778 (diff) | |
[ruby/openssl] pkcs7: update test case test_graceful_parsing_failure
Using test_pkcs7.rb as an example invalid input is not reliable because
we may happen to include a valid PKCS#7 PEM block in a heredoc.
https://github.com/ruby/openssl/commit/76fead26d2
Diffstat (limited to 'test')
| -rw-r--r-- | test/openssl/test_pkcs7.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_pkcs7.rb b/test/openssl/test_pkcs7.rb index 80e341cab9..0ade5bb164 100644 --- a/test/openssl/test_pkcs7.rb +++ b/test/openssl/test_pkcs7.rb @@ -204,7 +204,7 @@ END end def test_graceful_parsing_failure #[ruby-core:43250] - contents = File.read(__FILE__) + contents = "not a valid PKCS #7 PEM block" assert_raise(ArgumentError) { OpenSSL::PKCS7.new(contents) } end |
