diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-03-22 01:10:05 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-03-22 01:10:05 -0700 |
commit | 9c038687cd616c9dabcaece98561f24d8fd02022 (patch) | |
tree | 164df62bfa17727d26f632617e02b253b97ff150 | |
parent | e080949222b1cc00d7a443d90a0589940fbb79f1 (diff) | |
download | bundler-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.rb | 10 |
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 |