spec/install/gems/sources_spec.rb in bundler-1.7.3 vs spec/install/gems/sources_spec.rb in bundler-1.7.4

- old
+ new

@@ -81,9 +81,21 @@ it "installs the gems without any warning" do bundle :install 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 before do # Oh no! Someone evil is trying to hijack rack :(