aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-12 16:29:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-13 11:36:03 +0900
commitd3305cab44ff6c9e59778c0737d8426fe8563ae8 (patch)
treef87aad94f90a645b68ae109c280bcbc4d87ef57c /spec
parentf16c880f776450771196c35cec10b9a5860a560f (diff)
downloadruby-d3305cab44ff6c9e59778c0737d8426fe8563ae8.tar.gz
[rubygems/rubygems] restart with BUNDLE_VERSION if it's specified
https://github.com/rubygems/rubygems/commit/57cfe7cf8d
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/runtime/self_management_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/bundler/runtime/self_management_spec.rb b/spec/bundler/runtime/self_management_spec.rb
index 248555355c..d741c3c15b 100644
--- a/spec/bundler/runtime/self_management_spec.rb
+++ b/spec/bundler/runtime/self_management_spec.rb
@@ -109,6 +109,9 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru
bundle "config set --local version #{previous_minor}"
bundle "install", :artifice => "vcr"
expect(out).to include("Bundler #{Bundler::VERSION} is running, but your configuration was #{previous_minor}. Installing Bundler #{previous_minor} and restarting using that version.")
+
+ bundle "-v"
+ expect(out).to eq(Bundler::VERSION[0] == "2" ? "Bundler version #{previous_minor}" : previous_minor)
end
it "does not try to install when using bundle config version global" do