diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-11-11 13:32:16 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-11-13 08:35:40 +0000 |
| commit | ae733a693b8c5eaea44841c58c1507ffcf3b2d58 (patch) | |
| tree | ff1bbcf4f147f49ff3e05c356146ae9e1f6cd26b /spec | |
| parent | 38b07a7feee2afb229882f270af1947273f13a2f (diff) | |
[rubygems/rubygems] Include original error when openssl fails to load
https://github.com/rubygems/rubygems/commit/440343b791
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/bundler/install/gems/compact_index_spec.rb | 4 | ||||
| -rw-r--r-- | spec/bundler/install/gems/dependency_api_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/install/gems/compact_index_spec.rb b/spec/bundler/install/gems/compact_index_spec.rb index db5d184d51..cf661ee284 100644 --- a/spec/bundler/install/gems/compact_index_spec.rb +++ b/spec/bundler/install/gems/compact_index_spec.rb @@ -738,14 +738,14 @@ RSpec.describe "compact index api" do end end - it "explains what to do to get it" do + it "explains what to do to get it, and includes original error" do gemfile <<-G source "#{source_uri.gsub(/http/, "https")}" gem "myrack" G bundle :install, env: { "RUBYOPT" => opt_add("-I#{bundled_app("broken_ssl")}", ENV["RUBYOPT"]) }, raise_on_error: false, artifice: nil - expect(err).to include("OpenSSL") + expect(err).to include("recompile Ruby").and include("cannot load such file") end end diff --git a/spec/bundler/install/gems/dependency_api_spec.rb b/spec/bundler/install/gems/dependency_api_spec.rb index 7396843f1d..4b561064d9 100644 --- a/spec/bundler/install/gems/dependency_api_spec.rb +++ b/spec/bundler/install/gems/dependency_api_spec.rb @@ -707,14 +707,14 @@ RSpec.describe "gemcutter's dependency API" do end end - it "explains what to do to get it" do + it "explains what to do to get it, and includes original error" do gemfile <<-G source "#{source_uri.gsub(/http/, "https")}" gem "myrack" G bundle :install, artifice: "fail", env: { "RUBYOPT" => opt_add("-I#{bundled_app("broken_ssl")}", ENV["RUBYOPT"]) }, raise_on_error: false - expect(err).to include("OpenSSL") + expect(err).to include("recompile Ruby").and include("cannot load such file") end end |
