diff options
| -rw-r--r-- | spec/bundler/support/path.rb | 2 | ||||
| -rw-r--r-- | spec/bundler/support/rubygems_ext.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 0a534dd40e..1c49def88d 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -114,7 +114,7 @@ module Spec end def tmp_root - source_root.join("tmp") + ruby_core? && (tmpdir = ENV["TMPDIR"]) ? Pathname(tmpdir) : source_root.join("tmp") end # Bump this version whenever you make a breaking change to the spec setup diff --git a/spec/bundler/support/rubygems_ext.rb b/spec/bundler/support/rubygems_ext.rb index 2d681529aa..f168c70487 100644 --- a/spec/bundler/support/rubygems_ext.rb +++ b/spec/bundler/support/rubygems_ext.rb @@ -43,7 +43,7 @@ module Spec # sign extension bundles on macOS, to avoid trying to find the specified key # from the fake $HOME/Library/Keychains directory. ENV.delete "RUBY_CODESIGN" - ENV["TMPDIR"] = Path.tmpdir.to_s + ENV["TMPDIR"] = Path.tmpdir.to_s unless Path.ruby_core? require "rubygems/user_interaction" Gem::DefaultUserInteraction.ui = Gem::SilentUI.new |
