summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/cache/cache_path_spec.rb7
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