summaryrefslogtreecommitdiff
path: root/spec/bundler/runtime
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-12 16:38:09 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-13 11:36:03 +0900
commit8cf5297ba595af38a89ba8d2d428ae26b6bb00d2 (patch)
treefec3f5cb2f24f591984d26c766242f6ac9e277c5 /spec/bundler/runtime
parentd3305cab44ff6c9e59778c0737d8426fe8563ae8 (diff)
[rubygems/rubygems] Dont't use Bundler::VERSION
https://github.com/rubygems/rubygems/commit/46cd9be69a
Diffstat (limited to 'spec/bundler/runtime')
-rw-r--r--spec/bundler/runtime/self_management_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/bundler/runtime/self_management_spec.rb b/spec/bundler/runtime/self_management_spec.rb
index d741c3c15b..0b21601019 100644
--- a/spec/bundler/runtime/self_management_spec.rb
+++ b/spec/bundler/runtime/self_management_spec.rb
@@ -6,6 +6,10 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru
"2.3.0"
end
+ let(:current_version) do
+ "2.4.0"
+ end
+
before do
build_repo2
@@ -104,14 +108,14 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru
end
it "installs BUNDLE_VERSION version when using bundle config version x.y.z" do
- lockfile_bundled_with(Bundler::VERSION.gsub(/\.dev/, ""))
+ lockfile_bundled_with(current_version)
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)
+ expect(out).to eq(previous_minor[0] == "2" ? "Bundler version #{previous_minor}" : previous_minor)
end
it "does not try to install when using bundle config version global" do