summaryrefslogtreecommitdiff
path: root/spec/commands
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-09-07 09:36:06 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-09-07 09:36:06 +0900
commit2c501b2bd08afa1a6904c18eaf281d9d49d93e66 (patch)
treebbd107640394262d713fd54e6ffcd4187325809f /spec/commands
parente63c6f66f9afddf58c282764ead68143cf83d1e1 (diff)
downloadbundler-2c501b2bd08afa1a6904c18eaf281d9d49d93e66.tar.gz
Use Pathname#join instead of string interpolation
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/exec_spec.rb4
-rw-r--r--spec/commands/newgem_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 20b07e064b..049ec830fb 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -61,7 +61,7 @@ RSpec.describe "bundle exec" do
it "handles --keep-file-descriptors" do
require "tempfile"
- bundle_bin = File.expand_path("#{Spec::Path.bindir}/bundle", __FILE__)
+ bundle_bin = File.expand_path(Spec::Path.bindir.join("bundle"), __FILE__)
command = Tempfile.new("io-test")
command.sync = true
@@ -474,7 +474,7 @@ RSpec.describe "bundle exec" do
Bundler.rubygems.extend(Monkey)
G
bundle "install --deployment"
- bundle "exec ruby -e '`#{Spec::Path.bindir}/bundler -v`; puts $?.success?'"
+ bundle "exec ruby -e '`#{Spec::Path.bindir.join("bundler")} -v`; puts $?.success?'"
expect(out).to match("true")
end
end
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index f9420e46dd..d14aee4136 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -170,7 +170,7 @@ RSpec.describe "bundle gem" do
# This spec cannot have `git` available in the test env
before do
- bundle_bin = File.expand_path("#{Spec::Path.bindir}/bundle", __FILE__)
+ bundle_bin = File.expand_path(Spec::Path.bindir.join("bundle"), __FILE__)
load_paths = [lib, spec]
load_path_str = "-I#{load_paths.join(File::PATH_SEPARATOR)}"