diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-02-11 12:54:20 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-02-11 12:55:12 +0100 |
commit | 1e9e4cbab0715d77059fa0b3aac9a940f1d60873 (patch) | |
tree | 4d34011f2af4fcd5b6bb662b2203c8d06d691071 /spec | |
parent | 5bfbcb278720548ac78f2f6574372e75cb153a24 (diff) | |
download | bundler-1e9e4cbab0715d77059fa0b3aac9a940f1d60873.tar.gz |
Move method only used once inlinemore_paralelization_improvements
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/path.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb index fe79a03c47..bfa4865abd 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -170,8 +170,8 @@ module Spec def with_root_gemspec if ruby_core? root_gemspec = root.join("bundler.gemspec") - # `in_repo_root` for Dir.glob in gemspec - spec = in_repo_root { Gem::Specification.load(gemspec.to_s) } + # Dir.chdir for Dir.glob in gemspec + spec = Dir.chdir(root) { Gem::Specification.load(gemspec.to_s) } spec.bindir = "libexec" File.open(root_gemspec.to_s, "w") {|f| f.write spec.to_ruby } yield(root_gemspec) @@ -192,10 +192,6 @@ module Spec end end - def in_repo_root - Dir.chdir(root) { yield } - end - extend self private |