summaryrefslogtreecommitdiff
path: root/spec/commands
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-23 12:42:25 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-23 13:36:34 -0500
commit3432b278cd9adb80a3cba1b40d5fa527ab81a958 (patch)
tree2bbcfdd76cc51dec8c7ad44be50ec87161362920 /spec/commands
parentab5ee1358d96556806b0b67453ed0b98d027be44 (diff)
downloadbundler-3432b278cd9adb80a3cba1b40d5fa527ab81a958.tar.gz
Update the update spec for Bundler 2 allowing Bundler conflicts
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/update_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index c08a10c24c..a7d50502e3 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -414,12 +414,19 @@ RSpec.describe "bundle update when a gem depends on a newer version of bundler"
G
end
- it "should explain that bundler conflicted" do
+ it "should explain that bundler conflicted", :bundler => "< 2" do
bundle "update", :all => bundle_update_requires_all?
expect(last_command.stdboth).not_to match(/in snapshot/i)
expect(last_command.bundler_err).to match(/current Bundler version/i).
and match(/perhaps you need to update bundler/i)
end
+
+ it "should warn that the newer version of Bundler would conflict", :bundler => "2" do
+ bundle! "update", :all => true
+ expect(last_command.bundler_err).to include("rails (3.0.1) has dependency bundler").
+ and include("so the dependency is being ignored")
+ expect(the_bundle).to include_gem "rails 3.0.1"
+ end
end
RSpec.describe "bundle update" do