diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-01-08 16:11:52 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-03-27 14:43:20 +0900 |
commit | 7b5133801340cfa7e4e4e5dd61384cb90c3f6085 (patch) | |
tree | f00b7f885a6c43d82222ce65f3b92451ba5aa870 /spec/bundler/runtime/inline_spec.rb | |
parent | 572021c6e4e01c3b8ece90ad42fdd4ee71b8acc5 (diff) | |
download | ruby-7b5133801340cfa7e4e4e5dd61384cb90c3f6085.tar.gz |
Merge bundler-2.1.4
Diffstat (limited to 'spec/bundler/runtime/inline_spec.rb')
-rw-r--r-- | spec/bundler/runtime/inline_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/bundler/runtime/inline_spec.rb b/spec/bundler/runtime/inline_spec.rb index 94d8b086a2..cd762fe636 100644 --- a/spec/bundler/runtime/inline_spec.rb +++ b/spec/bundler/runtime/inline_spec.rb @@ -333,4 +333,21 @@ RSpec.describe "bundler/inline#gemfile" do expect(last_command).to be_success expect(out).to include("BUNDLE_GEMFILE is empty") end + + it "resets BUNDLE_GEMFILE to the empty string if it wasn't set previously" do + ENV["BUNDLE_GEMFILE"] = nil + script <<-RUBY + gemfile do + source "#{file_uri_for(gem_repo1)}" + gem "rack" + end + + puts "BUNDLE_GEMFILE is empty" if ENV["BUNDLE_GEMFILE"].empty? + system("#{Gem.ruby} -w -e '42'") # this should see original value of BUNDLE_GEMFILE + exit $?.exitstatus + RUBY + + expect(last_command).to be_success + expect(out).to include("BUNDLE_GEMFILE is empty") + end end |