mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] 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`.
ae419fd6f8
This commit is contained in:
parent
4089f8df1e
commit
884f948a90
1 changed files with 13 additions and 0 deletions
|
@ -291,6 +291,19 @@ RSpec.describe "bundler/inline#gemfile" do
|
||||||
expect(out).to eq "1.0.0"
|
expect(out).to eq "1.0.0"
|
||||||
end
|
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
|
it "skips platform warnings" do
|
||||||
simulate_platform "ruby"
|
simulate_platform "ruby"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue