aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Moore <tmoore@incrementalism.net>2014-10-11 18:11:05 +1100
committerTim Moore <tmoore@incrementalism.net>2014-10-11 18:15:46 +1100
commitd61184468944248cf75ac2693a1299d79348863c (patch)
treeeed136573432b6ed211d89d5ae1be9f462083ee0
parent802832864a19cd8c9d81b1123dce1d8acc8cc805 (diff)
downloadbundler-d61184468944248cf75ac2693a1299d79348863c.tar.gz
Add spec for cache/deployment with source blocks.
-rw-r--r--spec/install/gems/sources_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/install/gems/sources_spec.rb b/spec/install/gems/sources_spec.rb
index d45e25c7..546aac45 100644
--- a/spec/install/gems/sources_spec.rb
+++ b/spec/install/gems/sources_spec.rb
@@ -83,6 +83,18 @@ describe "bundle install with gems on multiple sources" do
expect(out).not_to include("Warning")
should_be_installed("rack-obama 1.0.0", "rack 1.0.0")
end
+
+ it "can cache and deploy" do
+ bundle :package
+
+ expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist
+ expect(bundled_app("vendor/cache/rack-obama-1.0.gem")).to exist
+
+ bundle "install --deployment", :exitstatus => true
+
+ expect(exitstatus).to eq(0)
+ should_be_installed("rack-obama 1.0.0", "rack 1.0.0")
+ end
end
context "with sources set by an option" do