From 5d78fb1c9a874285a4031675afd0385011a5d1f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 7 Jun 2020 16:18:01 +0200 Subject: [PATCH] [rubygems/rubygems] Change spec to do the right thing on bundler 3 On bundler 3, the `--deployment` flag doesn't exist, so the `bundle install --deployment` command was failing silently and the spec was verifying a different scenario. Change the spec to work the same regardless of bundler's major version. Also, from the spec description it was not apparently that a specific case involving deployment mode was being tested, so I reworded it to make it more apparent. https://github.com/rubygems/rubygems/commit/3e33e2b927 --- spec/bundler/runtime/setup_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb index dc1034cf04fc38..1fc9be84d86d82 100644 --- a/spec/bundler/runtime/setup_spec.rb +++ b/spec/bundler/runtime/setup_spec.rb @@ -279,13 +279,13 @@ def clean_load_path(lp) end context "an absolute path is not provided" do - it "uses BUNDLE_GEMFILE to locate the gemfile if present" do + it "uses BUNDLE_GEMFILE to locate the gemfile if present and doesn't fail in deployment mode" do gemfile <<-G source "#{file_uri_for(gem_repo1)}" G bundle "install" - bundle "install --deployment" + bundle "config set --local deployment true" ENV["BUNDLE_GEMFILE"] = "Gemfile" ruby <<-R