aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2021-10-09 11:28:05 +0200
committergit <svn-admin@ruby-lang.org>2021-10-11 19:13:15 +0900
commit607efe91540057ef0ca3be4a829869df018ee94a (patch)
tree5627fbc31520ebab675d374fd8101fd49251c105 /spec
parent62d1deb0d12b2a2ff77d7b5dfda57a32b1a0ac1c (diff)
downloadruby-607efe91540057ef0ca3be4a829869df018ee94a.tar.gz
[rubygems/rubygems] Show the exact name of the gem that was deleted
If a non exact name (matched as a regexp) is passed to `bundle info`, these strings might not match. https://github.com/rubygems/rubygems/commit/831edf1edf
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/info_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bundler/commands/info_spec.rb b/spec/bundler/commands/info_spec.rb
index 186bb2a657..29cac94057 100644
--- a/spec/bundler/commands/info_spec.rb
+++ b/spec/bundler/commands/info_spec.rb
@@ -62,6 +62,10 @@ RSpec.describe "bundle info" do
expect(err).to match(/The gem rails has been deleted/i)
expect(err).to match(default_bundle_path("gems", "rails-2.3.2").to_s)
+
+ bundle "info rail --path"
+ expect(err).to match(/The gem rails has been deleted/i)
+ expect(err).to match(default_bundle_path("gems", "rails-2.3.2").to_s)
end
context "given a default gem shippped in ruby", :ruby_repo do