diff options
author | robuye <rulejczyk@gmail.com> | 2019-05-02 02:00:21 +0200 |
---|---|---|
committer | robuye <rulejczyk@gmail.com> | 2019-06-19 23:26:00 +0200 |
commit | ae419fd6f8e33fc6648a833c3347933a25067fb0 (patch) | |
tree | 5d58d671323fba328eef4b496c6d9c3840aae686 | |
parent | f75efc27501ca4390abbae3d8846d0e54dab048b (diff) | |
download | bundler-ae419fd6f8e33fc6648a833c3347933a25067fb0.tar.gz |
bundler/inline should always install gems to system path
As discussed in the P/R, when `BUNDLE_PATH` env is set Bundler should
still install gems to the system path. `GEM_HOME` can be used to provide
different location if needed.
The test is added to document expected behavior of `bundler/inline`.
-rw-r--r-- | spec/runtime/inline_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/runtime/inline_spec.rb b/spec/runtime/inline_spec.rb index d53c3d1c15..33eaf4ad04 100644 --- a/spec/runtime/inline_spec.rb +++ b/spec/runtime/inline_spec.rb @@ -291,6 +291,19 @@ RSpec.describe "bundler/inline#gemfile" do expect(out).to eq "1.0.0" end + context "when BUNDLE_PATH is set" do + it "installs inline gems to the system path regardless" do + script <<-RUBY, :env => { "BUNDLE_PATH" => "./vendor/inline" } + gemfile(true) do + source "file://#{gem_repo1}" + gem "rack" + end + RUBY + expect(last_command).to be_success + expect(system_gem_path("gems/rack-1.0.0")).to exist + end + end + it "skips platform warnings" do simulate_platform "ruby" |