aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime/with_clean_env_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-09-08 13:57:26 -0700
committerAgis Anastasopoulos <agis.anast@gmail.com>2015-09-19 22:17:48 +0300
commit42b507218fd910feb2a9756bc08dc41181a9d1c4 (patch)
tree6da2b899d2512eb34d9f53a8141a56b823b4aa98 /spec/runtime/with_clean_env_spec.rb
parentf5c6978b61826187cecb5ed66a2c21134bc5610b (diff)
downloadbundler-42b507218fd910feb2a9756bc08dc41181a9d1c4.tar.gz
Clean RUBYLIB as well in `with_clean_env`
refs #3982
Diffstat (limited to 'spec/runtime/with_clean_env_spec.rb')
-rw-r--r--spec/runtime/with_clean_env_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/runtime/with_clean_env_spec.rb b/spec/runtime/with_clean_env_spec.rb
index e47e32c2..eed024a3 100644
--- a/spec/runtime/with_clean_env_spec.rb
+++ b/spec/runtime/with_clean_env_spec.rb
@@ -42,15 +42,13 @@ describe "Bundler.with_env helpers" do
end
it "should not pass RUBYOPT changes" do
- lib_path = File.expand_path("../../../lib", __FILE__)
- Bundler::ORIGINAL_ENV["RUBYOPT"] = " -I#{lib_path} -rbundler/setup"
+ Bundler::ORIGINAL_ENV["RUBYOPT"] = " -rbundler/setup"
Bundler.with_clean_env do
expect(`echo $RUBYOPT`.strip).not_to include "-rbundler/setup"
- expect(`echo $RUBYOPT`.strip).not_to include "-I#{lib_path}"
end
- expect(Bundler::ORIGINAL_ENV["RUBYOPT"]).to eq(" -I#{lib_path} -rbundler/setup")
+ expect(Bundler::ORIGINAL_ENV["RUBYOPT"]).to eq(" -rbundler/setup")
end
it "cleans RUBYLIB" do