summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/commands/update_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index da4c68fc3b..f7c1aa0955 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -12,7 +12,7 @@ RSpec.describe "bundle update" do
G
end
- describe "with no arguments", :bundler => "< 2" do
+ describe "with no arguments", :bundler => "< 3" do
it "updates the entire bundle" do
update_repo2 do
build_gem "activesupport", "3.0"
@@ -35,6 +35,18 @@ RSpec.describe "bundle update" do
end
end
+ describe "with no arguments", :bundler => "3" do
+ it "does not update the entire bundle" do
+ update_repo2 do
+ build_gem "activesupport", "3.0"
+ end
+
+ bundle "update"
+ expect(out).not_to include("Bundle updated!")
+ expect(the_bundle).not_to include_gems "rack 1.2", "activesupport 3.0"
+ end
+ end
+
describe "with --all", :bundler => "2" do
it "updates the entire bundle" do
update_repo2 do