diff options
| author | Markus Reiter | 2017-10-04 11:40:03 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-04 11:40:03 +0200 |
| commit | 67afb6ea6888a41313c167d68cab514d6d94a39b (patch) | |
| tree | a45ebbefb87e84f30675b6faa6e3016b3a5be2a5 /Library/Homebrew/test/cask/cli/outdated_spec.rb | |
| parent | 7ee86cfe770bc19bf65509abf948ce363de90c59 (diff) | |
| parent | 643b2a168c6c5b2f21b141ec385fc49d29c41718 (diff) | |
| download | brew-67afb6ea6888a41313c167d68cab514d6d94a39b.tar.bz2 | |
Merge pull request #3260 from reitermarkus/cask-cli-specs
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.rb | 4 |
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 { |
