summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAnkit Kataria <ankitkataria28@gmail.com>2019-01-24 22:09:59 +0530
committerAnkit Kataria <ankitkataria28@gmail.com>2019-01-24 22:09:59 +0530
commit4992124240503249e1a28e17c9f9129a11e7f82a (patch)
tree6453ea8366cf4b82027ecfeb9a4e3e00a26fa5cb /spec
parent4557124b5ea30821895eb2686874cb4219f404e2 (diff)
downloadbundler-4992124240503249e1a28e17c9f9129a11e7f82a.tar.gz
add patch option in bundle config
Diffstat (limited to 'spec')
-rw-r--r--spec/commands/update_spec.rb9
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"