aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cask/cli/outdated_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-04 11:40:03 +0200
committerGitHub2017-10-04 11:40:03 +0200
commit67afb6ea6888a41313c167d68cab514d6d94a39b (patch)
treea45ebbefb87e84f30675b6faa6e3016b3a5be2a5 /Library/Homebrew/test/cask/cli/outdated_spec.rb
parent7ee86cfe770bc19bf65509abf948ce363de90c59 (diff)
parent643b2a168c6c5b2f21b141ec385fc49d29c41718 (diff)
downloadbrew-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.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 {