diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-07-26 15:49:28 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 570167eaa9084cec3b11fd3eca64955795835283 (patch) | |
tree | e5d12783b3eac7bc10b21a054650349e91417da3 /spec | |
parent | 81c06437629da422a7b6701a140b040af430b832 (diff) |
[rubygems/rubygems] Give a `bundle install` hint when `bundle list` fails
https://github.com/rubygems/rubygems/commit/98f5087e34
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/install/yanked_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/bundler/install/yanked_spec.rb b/spec/bundler/install/yanked_spec.rb index b45a74cf8b..c5f3d788ba 100644 --- a/spec/bundler/install/yanked_spec.rb +++ b/spec/bundler/install/yanked_spec.rb @@ -96,6 +96,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("Install missing gems with `bundle install`.") expect(err).to_not include("Your bundle is locked to rack (0.9.1), but that version could not be found in any of the sources listed in your Gemfile.") 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.") |