summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-09 09:28:28 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-17 20:34:01 -0300
commit75ac1fe72ae495a04f44a3701140c4e28eafefc1 (patch)
tree494a1373225e0b45e1a497db62cfd098606bc6eb
parent5914154fab828f762c815b7d72cbdc2d4694bd1f (diff)
downloadbundler-75ac1fe72ae495a04f44a3701140c4e28eafefc1.tar.gz
Move common stuff to inside let
-rw-r--r--spec/runtime/setup_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 5a632f8391..88f4807e35 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -859,12 +859,12 @@ end
context "with bundler is located in symlinked GEM_HOME" do
let(:gem_home) { Dir.mktmpdir }
- let(:symlinked_gem_home) { Tempfile.new("gem_home") }
+ let(:symlinked_gem_home) { Tempfile.new("gem_home").path }
let(:bundler_dir) { File.expand_path("../../..", __FILE__) }
let(:bundler_lib) { File.join(bundler_dir, "lib") }
before do
- FileUtils.ln_sf(gem_home, symlinked_gem_home.path)
+ FileUtils.ln_sf(gem_home, symlinked_gem_home)
gems_dir = File.join(gem_home, "gems")
specifications_dir = File.join(gem_home, "specifications")
Dir.mkdir(gems_dir)
@@ -884,7 +884,7 @@ end
it "should successfully require 'bundler/setup'" do
install_gemfile ""
- ruby <<-R, :env => { "GEM_PATH" => symlinked_gem_home.path }, :no_lib => true
+ ruby <<-R, :env => { "GEM_PATH" => symlinked_gem_home }, :no_lib => true
puts (require 'bundler/setup')
R