summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 19:52:59 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 23:14:53 +0200
commitb017fe45ce34594d68ac1319f54c498937f50fdc (patch)
tree13507f9eb937317bf4ed0a29582759409f3d67c4
parentb9f5e10ab4104d1c87d015b5bd899789a841bc7c (diff)
downloadbundler-b017fe45ce34594d68ac1319f54c498937f50fdc.tar.gz
Fix up
-rw-r--r--spec/support/rubygems_ext.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index c94de86460..6d4a6e12ca 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -62,11 +62,11 @@ module Spec
spec.bindir = "libexec"
File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
cmd = "#{gem_cmd} build #{root.join("bundler.gemspec")}"
- system(cmd) || raise("Building bundler gem failed!")
+ Dir.chdir(root) { system(cmd) } || raise("Building bundler gem failed!")
FileUtils.rm(root.join("bundler.gemspec"))
else
cmd = "#{gem_cmd} build #{gemspec}"
- system(cmd) || raise("Building bundler gem failed!")
+ Dir.chdir(root) { system(cmd) } || raise("Building bundler gem failed!")
end
FileUtils.mv(root.join("bundler-#{Bundler::VERSION}.gem"), "pkg")