summaryrefslogtreecommitdiff
path: root/spec/bundler/install
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-11-19 13:13:19 +0100
committergit <svn-admin@ruby-lang.org>2022-07-18 19:07:47 +0900
commit01560e1c53ce2e1fcf3cdc2480c6f75ca7c6f0a6 (patch)
tree7e24ede96729c49aac0055a38ce65e339e6ca2ab /spec/bundler/install
parent82add06f9cbe00ad611e99692d8d49b77159c601 (diff)
[rubygems/rubygems] Improve error message when gems cannot be found
Include the source of each gem. https://github.com/rubygems/rubygems/commit/a0bed2fb79
Diffstat (limited to 'spec/bundler/install')
-rw-r--r--spec/bundler/install/yanked_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/install/yanked_spec.rb b/spec/bundler/install/yanked_spec.rb
index b53c15be69..3acae85afd 100644
--- a/spec/bundler/install/yanked_spec.rb
+++ b/spec/bundler/install/yanked_spec.rb
@@ -65,7 +65,7 @@ RSpec.context "when using gem before installing" do
bundle :list, :raise_on_error => false
- expect(err).to include("Could not find rack-0.9.1 in any of the sources")
+ expect(err).to include("Could not find rack-0.9.1 in locally installed gems")
expect(err).to_not include("Your bundle is locked to rack (0.9.1) from")
expect(err).to_not include("If you haven't changed sources, that means the author of rack (0.9.1) has removed it.")
expect(err).to_not include("You'll need to update your bundle to a different version of rack (0.9.1) that hasn't been removed in order to install.")
@@ -95,7 +95,7 @@ RSpec.context "when using gem before installing" do
bundle :list, :raise_on_error => false
- expect(err).to include("Could not find rack-0.9.1, rack_middleware-1.0 in any of the sources")
+ expect(err).to include("Could not find rack-0.9.1, rack_middleware-1.0 in locally installed gems")
expect(err).to include("Install missing gems with `bundle install`.")
expect(err).to_not include("Your bundle is locked to rack (0.9.1) from")
expect(err).to_not include("If you haven't changed sources, that means the author of rack (0.9.1) has removed it.")