From 30c255d16ea0221a263cbc203dd4f5db7ed25160 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Thu, 7 Sep 2017 09:14:56 +0900 Subject: Use Pathname#join instead of string interpolation --- spec/support/path.rb | 8 ++++---- 1 file 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) -- cgit v1.2.1