diff options
author | Mal Graty <mal.graty@googlemail.com> | 2017-05-01 00:55:45 +0100 |
---|---|---|
committer | Mal Graty <mal.graty@googlemail.com> | 2017-05-01 16:24:24 +0100 |
commit | 8fce5958b8191080a1aa911fc0136b4b2e8591d5 (patch) | |
tree | 157ac7a2549d2fc48f7f261bce25c72682b92448 /spec/cache | |
parent | aeb2a5a25ca4373dd5c6e55f985d1436064aa0ac (diff) | |
download | bundler-8fce5958b8191080a1aa911fc0136b4b2e8591d5.tar.gz |
Restore and update absolute cache_path test
Diffstat (limited to 'spec/cache')
-rw-r--r-- | spec/cache/cache_path_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/cache/cache_path_spec.rb b/spec/cache/cache_path_spec.rb index df7c0bd031..c9ec4218ae 100644 --- a/spec/cache/cache_path_spec.rb +++ b/spec/cache/cache_path_spec.rb @@ -23,4 +23,11 @@ RSpec.describe "bundle package" do expect(bundled_app("vendor/cache-foo/rack-1.0.0.gem")).to exist end end + + context "with absolute --cache-path" do + it "caches gems at given path" do + bundle :package, "cache-path" => "/tmp/cache-foo" + expect(bundled_app("/tmp/cache-foo/rack-1.0.0.gem")).to exist + end + end end |