diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-09-07 09:36:06 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-09-07 09:36:06 +0900 |
commit | 2c501b2bd08afa1a6904c18eaf281d9d49d93e66 (patch) | |
tree | bbd107640394262d713fd54e6ffcd4187325809f /spec/runtime | |
parent | e63c6f66f9afddf58c282764ead68143cf83d1e1 (diff) | |
download | bundler-2c501b2bd08afa1a6904c18eaf281d9d49d93e66.tar.gz |
Use Pathname#join instead of string interpolation
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/with_clean_env_spec.rb | 2 |
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 74694aa9ef..f471118ba9 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("#{Spec::Path.root}/lib", __FILE__) + File::PATH_SEPARATOR + "/foo" + ENV["RUBYLIB"] = File.expand_path(Spec::Path.root.join("lib"), __FILE__) + File::PATH_SEPARATOR + "/foo" result = bundle("exec '#{Gem.ruby}' -e #{code.inspect}") expect(result).to eq("/foo") end |