summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-07-25 10:38:21 +0000
committerBundlerbot <bot@bundler.io>2019-07-25 10:38:21 +0000
commit75db5f57c2239163335504a05d3807e1baa67a71 (patch)
treecc3eb6ef5163cec6b0b9232e624008e7df0b35e2
parenta8874423f347efa52d69b332cc855def812e9b5b (diff)
parent355a92207311e90c22249dcc806668a0de47618a (diff)
downloadbundler-75db5f57c2239163335504a05d3807e1baa67a71.tar.gz
Merge #7251
7251: Removed the environmental variables that are BUNDLE_USER_*. r=hsbt a=hsbt ### What was the end-user problem that led to this PR? When the users uses `BUNDLE_USER_*` environmental variables like `BUNDLE_USER_CONFIG`, the rspec example of Bundler affected by them failed. ### What was your diagnosis of the problem? The current spec_helper didn't clear and restore them. ### What is your fix for the problem, implemented in this PR? I remove and restore them same as `Bundler::EnvironmentPreserver::BUNDLER_PREFIX` ### Why did you choose this fix out of the possible options? This is the most simple solution with the current implementation. Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
-rw-r--r--spec/spec_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e3af0f55d2..3f12b27547 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -101,6 +101,7 @@ RSpec.configure do |config|
Spec::Rubygems.setup
ENV["RUBYOPT"] = "#{ENV["RUBYOPT"]} -r#{Spec::Path.spec_dir}/support/hax.rb"
ENV["BUNDLE_SPEC_RUN"] = "true"
+ ENV["BUNDLE_USER_CONFIG"] = ENV["BUNDLE_USER_CACHE"] = ENV["BUNDLE_USER_PLUGIN"] = nil
# Don't wrap output in tests
ENV["THOR_COLUMNS"] = "10000"