diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:45:11 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:45:11 +0200 |
commit | 71a29e286a34204e808eaf5910b6b23e2a467e2b (patch) | |
tree | 7537fa489fc1ef1e68fdd2c19918e6dc4ce38e66 /spec/support/path.rb | |
parent | 948a863bd8ba237b71f647a4815eedb0befd9ab6 (diff) | |
download | bundler-71a29e286a34204e808eaf5910b6b23e2a467e2b.tar.gz |
Extract a `gemspec_dir` helperrefactor_ruby_core_integration
Diffstat (limited to 'spec/support/path.rb')
-rw-r--r-- | spec/support/path.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb index 73d828cb5d..9493c5422a 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -13,6 +13,10 @@ module Spec @gemspec ||= root.join(ruby_core? ? "lib/bundler/bundler.gemspec" : "bundler.gemspec") end + def gemspec_dir + @gemspec_dir ||= gemspec.parent + end + def bindir @bindir ||= root.join(ruby_core? ? "libexec" : "exe") end |