From 4992124240503249e1a28e17c9f9129a11e7f82a Mon Sep 17 00:00:00 2001 From: Ankit Kataria Date: Thu, 24 Jan 2019 22:09:59 +0530 Subject: add patch option in bundle config --- spec/commands/update_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec') 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" -- cgit v1.2.1