aboutsummaryrefslogtreecommitdiffstats
path: root/spec/commands
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2016-11-15 18:19:32 +0000
committerThe Bundler Bot <bot@bundler.io>2016-11-15 18:19:32 +0000
commit7d62863d5ea662a8885acbd604d6afb83c31800f (patch)
tree358ca5d80045af2de0e55835dd5c61c97810b4d1 /spec/commands
parentf4e8a379e81b8b923283da6c0c31e6a0485c3a2c (diff)
parentb3ad1702ba4d45df3d0c85c6585b1a60b9001b3a (diff)
downloadbundler-7d62863d5ea662a8885acbd604d6afb83c31800f.tar.gz
Auto merge of #5176 - chrismo:fix_outdated_regression_from_cc355865, r=chrismo
Fix outdated regression from cc355865 Refactoring of @lucasmazza fix w/ specs. The only existing spec coverage was essentially integration level and there was no way either @lucasmazza or myself could find a way to simulate the bug context. I extracted some of the code out of outdated into Definition and SpecSet and added unit specs to those extracted bits. Fixes #4979
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/outdated_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb
index b3d9a97b..a3e46a4e 100644
--- a/spec/commands/outdated_spec.rb
+++ b/spec/commands/outdated_spec.rb
@@ -607,17 +607,17 @@ describe "bundle outdated" do
it "shows all gems when patching and filtering to patch" do
bundle "outdated --patch --filter-patch"
- expect(out).to include("patch (newest")
- expect(out).to include("minor (newest")
- expect(out).to include("major (newest")
+ expect(out).to include("patch (newest 1.0.1")
+ expect(out).to include("minor (newest 1.0.1")
+ expect(out).to include("major (newest 1.0.1")
end
it "shows minor and major when updating to minor and filtering to patch and minor" do
bundle "outdated --minor --filter-minor"
expect(out).not_to include("patch (newest")
- expect(out).to include("minor (newest")
- expect(out).to include("major (newest")
+ expect(out).to include("minor (newest 1.1.0")
+ expect(out).to include("major (newest 1.1.0")
end
it "shows minor when updating to major and filtering to minor with parseable" do