summaryrefslogtreecommitdiff
path: root/spec/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'spec/runtime')
-rw-r--r--spec/runtime/with_clean_env_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/runtime/with_clean_env_spec.rb b/spec/runtime/with_clean_env_spec.rb
index 78eebaff79..b160e5b409 100644
--- a/spec/runtime/with_clean_env_spec.rb
+++ b/spec/runtime/with_clean_env_spec.rb
@@ -79,7 +79,7 @@ RSpec.describe "Bundler.with_env helpers" do
it "should clean up RUBYLIB" do
code = "print Bundler.clean_env['RUBYLIB']"
- ENV["RUBYLIB"] = File.expand_path("../../../lib", __FILE__) + File::PATH_SEPARATOR + "/foo"
+ ENV["RUBYLIB"] = root.join("lib").to_s + File::PATH_SEPARATOR + "/foo"
result = bundle("exec '#{Gem.ruby}' -e #{code.inspect}")
expect(result).to eq("/foo")
end