summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-05-26 21:56:17 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-06-06 10:52:57 +0900
commit03246719ccb2a9c042487b59b31bcac8c30bbff1 (patch)
tree8db49a08c8afc37d5c0e3289e315ee744e935930 /spec
parent7b317243ad25f4366d8c947bcb94c11aa795018f (diff)
[rubygems/rubygems] Fix `path` vs `deployment` precedence when path set through ENV
The `deployment` setting sets `path` to `vendor/bundle` implicitly, but that should only apply if `path` is not set explicitly, at any level. https://github.com/rubygems/rubygems/commit/3552c064c1
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/install/deploy_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/bundler/install/deploy_spec.rb b/spec/bundler/install/deploy_spec.rb
index fb97e5c34c..3f98d56f41 100644
--- a/spec/bundler/install/deploy_spec.rb
+++ b/spec/bundler/install/deploy_spec.rb
@@ -248,6 +248,12 @@ RSpec.describe "install in deployment or frozen mode" do
expect(out).to include("vendor/bundle2")
end
+ it "installs gems to custom path if specified, even when configured through ENV" do
+ bundle "config set deployment true"
+ bundle "install", :env => { "BUNDLE_PATH" => "vendor/bundle2" }
+ expect(out).to include("vendor/bundle2")
+ end
+
it "works with the `frozen` setting" do
bundle "config set frozen true"
bundle "install"