summaryrefslogtreecommitdiff
path: root/spec/commands/outdated_spec.rb
diff options
context:
space:
mode:
authorchrismo <chrismo@clabs.org>2016-11-14 16:54:17 -0600
committerThe Bundler Bot <bot@bundler.io>2016-11-15 03:55:30 +0000
commite65b466049a9dedf1de98fada8aaab0e9782cf6f (patch)
tree0cebca1fc30c10209f1792474b5ab491a148b36a /spec/commands/outdated_spec.rb
parent97c0dcc312509c3c8a9cb01817e5dda621bc02e2 (diff)
downloadbundler-try.tar.gz
Refactoring of @lucasmazza fix w/ specs.try
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. Closes: #5171 Approved by: <try>
Diffstat (limited to 'spec/commands/outdated_spec.rb')
-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 b3d9a97b82..a3e46a4e7f 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