aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask/cli/outdated_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-03 10:49:58 +0200
committerMarkus Reiter2017-10-03 10:56:40 +0200
commit643b2a168c6c5b2f21b141ec385fc49d29c41718 (patch)
treeae9f32f7283806d2e1878bb4aa8932b2fbacb2de /Library/Homebrew/test/cask/cli/outdated_spec.rb
parentec0d8fa7ba18f4fe05c5241258502c8db332b13d (diff)
downloadbrew-643b2a168c6c5b2f21b141ec385fc49d29c41718.tar.bz2
Refactor `cask/cli` specs.
Diffstat (limited to 'Library/Homebrew/test/cask/cli/outdated_spec.rb')
-rw-r--r--Library/Homebrew/test/cask/cli/outdated_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/cli/outdated_spec.rb b/Library/Homebrew/test/cask/cli/outdated_spec.rb
index 946092f89..7fca8c248 100644
--- a/Library/Homebrew/test/cask/cli/outdated_spec.rb
+++ b/Library/Homebrew/test/cask/cli/outdated_spec.rb
@@ -1,3 +1,5 @@
+require_relative "shared_examples/invalid_option"
+
describe Hbc::CLI::Outdated, :cask do
let(:installed) do
[
@@ -15,6 +17,8 @@ describe Hbc::CLI::Outdated, :cask do
allow_any_instance_of(described_class).to receive(:verbose?).and_return(true)
end
+ it_behaves_like "a command that handles invalid options"
+
describe 'without --greedy it ignores the Casks with "vesion latest" or "auto_updates true"' do
it "checks all the installed Casks when no token is provided" do
expect {