summaryrefslogtreecommitdiff
path: root/spec/support/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/path.rb')
-rw-r--r--spec/support/path.rb4
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