summaryrefslogtreecommitdiff
path: root/spec/commands/update_spec.rb
diff options
context:
space:
mode:
authorDennis Suratna <dennis.suratna@gmail.com>2017-03-06 10:23:42 -0800
committerDennis Suratna <dennis.suratna@gmail.com>2017-03-06 11:52:06 -0800
commit8e8fc90ddce73ccaea3227e622bfe13e6f56ab41 (patch)
tree978e9514337697d05662b80bfdc88bf94b6f18e0 /spec/commands/update_spec.rb
parent1b9d5cae04facdee2b3d3244e11d3edf5337c56c (diff)
downloadbundler-8e8fc90ddce73ccaea3227e622bfe13e6f56ab41.tar.gz
Suggest different command depending on where 'frozen' config is set
Diffstat (limited to 'spec/commands/update_spec.rb')
-rw-r--r--spec/commands/update_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index bb24c501e9..4992e428da 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -159,8 +159,16 @@ RSpec.describe "bundle update" do
bundle "update"
expect(out).to match(/You are trying to install in deployment mode after changing.your Gemfile/m)
+ expect(out).to match(/freeze \nby running `bundle install --no-deployment`./m)
expect(exitstatus).not_to eq(0) if exitstatus
end
+
+ it "should suggest different command when frozen is set globally" do
+ bundler "config --global frozen 1"
+ bundle "update"
+ expect(out).to match(/You are trying to install in deployment mode after changing.your Gemfile/m)
+ expect(out).to match(/freeze \nby running `bundle config --delete frozen`./m)
+ end
end
describe "with --source option" do