From 643b2a168c6c5b2f21b141ec385fc49d29c41718 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 3 Oct 2017 10:49:58 +0200 Subject: Refactor `cask/cli` specs. --- Library/Homebrew/test/cask/cli/outdated_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/test/cask/cli/outdated_spec.rb') 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 { -- cgit v1.2.3