summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-09-07 09:14:56 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-09-07 09:14:56 +0900
commit30c255d16ea0221a263cbc203dd4f5db7ed25160 (patch)
treee12a28542f33c513b4a388b302a7345f1497fb5f
parent1e9405654669266e6ffbeddbb476f52c36eedb9e (diff)
downloadbundler-30c255d16ea0221a263cbc203dd4f5db7ed25160.tar.gz
Use Pathname#join instead of string interpolation
-rw-r--r--spec/support/path.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb
index 56c7a4591b..f748b11105 100644
--- a/spec/support/path.rb
+++ b/spec/support/path.rb
@@ -9,15 +9,15 @@ module Spec
end
def gemspec
- @gemspec ||= Pathname.new(File.expand_path("#{root}/bundler.gemspec", __FILE__))
+ @gemspec ||= Pathname.new(File.expand_path(root.join("bundler.gemspec"), __FILE__))
end
def bin
- @bin ||= Pathname.new(File.expand_path("#{root}/exe", __FILE__))
+ @bin ||= Pathname.new(File.expand_path(root.join("exe"), __FILE__))
end
def spec
- @spec ||= Pathname.new(File.expand_path("#{root}/spec", __FILE__))
+ @spec ||= Pathname.new(File.expand_path(root.join("spec"), __FILE__))
end
def tmp(*path)
@@ -95,7 +95,7 @@ module Spec
end
def bundler_path
- Pathname.new(File.expand_path("#{root}/lib", __FILE__))
+ Pathname.new(File.expand_path(root.join("lib"), __FILE__))
end
def global_plugin_gem(*args)