summaryrefslogtreecommitdiff
path: root/spec/support/path.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-20 11:57:52 -0700
committerAndre Arko <andre@arko.net>2010-04-23 10:03:53 -0700
commit2af6b5720f9fec230d9af5f5aab5125683a13519 (patch)
treeaa2552b08484e60ad7377e6a7af5b4dab003ee37 /spec/support/path.rb
parenta20c08aee8a8a727ecc94b9ae9e556fb4eb32dc9 (diff)
downloadbundler-2af6b5720f9fec230d9af5f5aab5125683a13519.tar.gz
Cache command now prunes stale .gem files from vendor/cache
If you don't want to prune, pass --no-prune to either cache or pack
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 d39c4baf2b..8e95831363 100644
--- a/spec/support/path.rb
+++ b/spec/support/path.rb
@@ -30,6 +30,10 @@ module Spec
root.join(*path)
end
+ def cached_gem(path)
+ bundled_app("vendor/cache/#{path}.gem")
+ end
+
def base_system_gems
tmp.join("gems/base")
end