summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorrobuye <rulejczyk@gmail.com>2019-05-02 02:00:21 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:56 +0900
commit884f948a90389782c29bab8a0d28f8f2b58286d6 (patch)
tree5d0b584685a76d4bc9fa7ef5567ad64eb33ad2aa /spec
parent4089f8df1e985ec9b5347078214646be946229cc (diff)
[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`. https://github.com/bundler/bundler/commit/ae419fd6f8
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/runtime/inline_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/bundler/runtime/inline_spec.rb b/spec/bundler/runtime/inline_spec.rb
index ec07d6a4f3..6168c0c197 100644
--- a/spec/bundler/runtime/inline_spec.rb
+++ b/spec/bundler/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"