summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJames Wen <jrw2175@columbia.edu>2016-03-27 00:22:34 -0400
committerAndre Arko <andre@arko.net>2016-03-27 23:12:49 -0700
commit2fc60267bb4e94661e63ca52291a2e74183e7160 (patch)
tree4159a55235b152fc1ec70d36914fc5c623fcd754 /spec
parent8897eb95c14e875db9ae17bd0023c5ac19842ed6 (diff)
downloadbundler-2fc60267bb4e94661e63ca52291a2e74183e7160.tar.gz
Allow `bundle outdated` to handle all combinations of `--major`,1-12-backports
`--minor`, and `--patch` flags - Add test coverage for these combination sets - Fixes #4396
Diffstat (limited to 'spec')
-rw-r--r--spec/commands/outdated_spec.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb
index b77f7cb0dc..7f699f035d 100644
--- a/spec/commands/outdated_spec.rb
+++ b/spec/commands/outdated_spec.rb
@@ -345,4 +345,36 @@ describe "bundle outdated" do
it_behaves_like "major version is ignored"
it_behaves_like "minor version is ignored"
end
+
+ describe "with --minor --patch options" do
+ subject { bundle "outdated --minor --patch" }
+
+ it_behaves_like "minor version updates are detected"
+ it_behaves_like "patch version updates are detected"
+ it_behaves_like "major version is ignored"
+ end
+
+ describe "with --major --minor options" do
+ subject { bundle "outdated --major --minor" }
+
+ it_behaves_like "major version updates are detected"
+ it_behaves_like "minor version updates are detected"
+ it_behaves_like "patch version is ignored"
+ end
+
+ describe "with --major --patch options" do
+ subject { bundle "outdated --major --patch" }
+
+ it_behaves_like "major version updates are detected"
+ it_behaves_like "patch version updates are detected"
+ it_behaves_like "minor version is ignored"
+ end
+
+ describe "with --major --minor --patch options" do
+ subject { bundle "outdated --major --minor --patch" }
+
+ it_behaves_like "major version updates are detected"
+ it_behaves_like "minor version updates are detected"
+ it_behaves_like "patch version updates are detected"
+ end
end