summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/bundler/support/builders.rb2
-rw-r--r--spec/bundler/support/helpers.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index 5cfbed3864..50fedd38f1 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -434,7 +434,7 @@ module Spec
def _build(options = {})
full_name = "bundler-#{@version}"
- build_path = @context.tmp + full_name
+ build_path = (options[:build_path] || @context.tmp) + full_name
bundler_path = build_path + "#{full_name}.gem"
require "fileutils"
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index a0d2d2bb23..438037e08c 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -326,7 +326,7 @@ module Spec
def self.install_dev_bundler
extend self
- with_built_bundler {|gem_path| install_gem(gem_path, pristine_system_gem_path) }
+ with_built_bundler(nil, build_path: tmp_root) {|gem_path| install_gem(gem_path, pristine_system_gem_path) }
end
def install_gem(path, install_dir, default = false)