diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/update_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb index 6f29032dd2..d0552a9507 100644 --- a/spec/commands/update_spec.rb +++ b/spec/commands/update_spec.rb @@ -809,6 +809,15 @@ RSpec.describe "bundle update conservative" do G end + context "with patch set as default update level in config" do + it "should do a patch level update" do + bundle! "config --local patch true" + bundle! "update --patch foo" + + expect(the_bundle).to include_gems "foo 1.4.5", "bar 2.1.1", "qux 1.0.0" + end + end + context "patch preferred" do it "single gem updates dependent gem to minor" do bundle! "update --patch foo" |