diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-16 13:14:32 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-17 21:16:56 +0900 |
commit | 967dba157ca8a4864435d6dd0cf0bb68f83dafe1 (patch) | |
tree | 6a26f17ea0712576b16aaa23636482b5f159bec8 /test/rubygems | |
parent | e0337ce597f2259ac862bd9462601af0c03d51d9 (diff) |
Simplify handling of a `LoadError`
The `LoadError` has a `path` reader in all supported rubies.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3213
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_remote_fetcher.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index e39c57d7cd..f7542ff406 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -5,8 +5,7 @@ require 'webrick' begin require 'webrick/https' rescue LoadError => e - raise unless (e.respond_to?(:path) && e.path == 'openssl') || - e.message =~ / -- openssl$/ + raise unless e.path == 'openssl' end unless defined?(OpenSSL::SSL) |