diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2022-01-13 19:46:27 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-01-14 08:16:37 +0900 |
commit | b9b63774018870e69b8f81274c8326e9b1628597 (patch) | |
tree | 7df575ca53d9037d3a044f659d331855dc67e806 /test/net/http/test_https.rb | |
parent | 40d9be51e8c33118702c4dc536e915547b1080a2 (diff) | |
download | ruby-b9b63774018870e69b8f81274c8326e9b1628597.tar.gz |
[ruby/net-http] Fix unescaped `.` in Regexp
Use `include?` instead.
https://github.com/ruby/net-http/commit/05022744a9
Diffstat (limited to 'test/net/http/test_https.rb')
-rw-r--r-- | test/net/http/test_https.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 1593c91df0..603d6ecc1a 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -137,7 +137,7 @@ class TestNetHTTPS < Test::Unit::TestCase def test_session_reuse # FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h. # See https://github.com/openssl/openssl/pull/5967 for details. - omit if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/ + omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h') http = Net::HTTP.new(HOST, config("port")) http.use_ssl = true @@ -164,7 +164,7 @@ class TestNetHTTPS < Test::Unit::TestCase def test_session_reuse_but_expire # FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h. - omit if OpenSSL::OPENSSL_LIBRARY_VERSION =~ /OpenSSL 1.1.0h/ + omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h') http = Net::HTTP.new(HOST, config("port")) http.use_ssl = true |