summaryrefslogtreecommitdiff
path: root/spec/support/path.rb
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-07-07 14:36:53 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-07-07 14:36:53 -0700
commit5b2d02fb6a78bf8b07f7b6d3f9407a961e3a7489 (patch)
tree59ba50bac87ff630cb806ad551076d26aa97d684 /spec/support/path.rb
parentd3647992badb85d908e00769865ebdf1a89a8ea6 (diff)
downloadbundler-5b2d02fb6a78bf8b07f7b6d3f9407a961e3a7489.tar.gz
Make bundle install [PATH] namespace its gems to specific rubies
Diffstat (limited to 'spec/support/path.rb')
-rw-r--r--spec/support/path.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb
index 8e95831363..81ab6b23b2 100644
--- a/spec/support/path.rb
+++ b/spec/support/path.rb
@@ -30,6 +30,11 @@ module Spec
root.join(*path)
end
+ def vendored_gems(path)
+ engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"
+ bundled_app("vendor/#{engine}/#{RUBY_VERSION}/#{path}")
+ end
+
def cached_gem(path)
bundled_app("vendor/cache/#{path}.gem")
end