summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-03-22 01:10:05 -0700
committerSamuel E. Giddins <segiddins@segiddins.me>2015-03-22 01:10:05 -0700
commit9c038687cd616c9dabcaece98561f24d8fd02022 (patch)
tree164df62bfa17727d26f632617e02b253b97ff150
parente080949222b1cc00d7a443d90a0589940fbb79f1 (diff)
downloadbundler-seg-update-frozen-fails-loudly.tar.gz
Add a test that shows that bundle update fails loudly in a frozen bundleseg-update-frozen-fails-loudly
-rw-r--r--spec/update/gems_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/update/gems_spec.rb b/spec/update/gems_spec.rb
index ed503e3607..4989bcfd5f 100644
--- a/spec/update/gems_spec.rb
+++ b/spec/update/gems_spec.rb
@@ -99,6 +99,16 @@ describe "bundle update" do
should_not_be_installed "rack 1.2"
end
end
+
+ describe "in a frozen bundle" do
+ it "should fail loudly" do
+ bundle "install --deployment"
+ bundle "update"
+
+ expect(out).to match(/You are trying to install in deployment mode after changing.your Gemfile/m)
+ expect(exitstatus).not_to eq(0) if exitstatus
+ end
+ end
end
describe "bundle update in more complicated situations" do