diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-11-25 21:29:56 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-11-26 08:50:52 +0900 |
commit | f3320f164fd4147256227271b89e02522a536093 (patch) | |
tree | f9160b7f2d3cc1a448a6f7662e4251e14226e1c0 /spec/bundler/commands/info_spec.rb | |
parent | b6f543d4aea38333521b8b2333c8ec675a3ebe8f (diff) |
[rubygems/rubygems] Fix `bundle info` sometimes claiming that bundler has been deleted
https://github.com/rubygems/rubygems/commit/fe1a31db31
Diffstat (limited to 'spec/bundler/commands/info_spec.rb')
-rw-r--r-- | spec/bundler/commands/info_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/bundler/commands/info_spec.rb b/spec/bundler/commands/info_spec.rb index 518f93511a..dbfb800c4c 100644 --- a/spec/bundler/commands/info_spec.rb +++ b/spec/bundler/commands/info_spec.rb @@ -50,6 +50,14 @@ RSpec.describe "bundle info" do expect(out).to eq(root.to_s) end + it "doesn't claim that bundler has been deleted, even if using a custom path without bundler there" do + bundle "config set --local path vendor/bundle" + bundle "install" + bundle "info bundler" + expect(out).to include("\tPath: #{root}") + expect(err).not_to match(/The gem bundler has been deleted/i) + end + it "complains if gem not in bundle" do bundle "info missing", :raise_on_error => false expect(err).to eq("Could not find gem 'missing'.") |