From 193b5aa07ac9e278dfe123d03566c14572321deb Mon Sep 17 00:00:00 2001 From: alexbostock Date: Sun, 16 Sep 2018 21:54:19 +0100 Subject: [PATCH] Add test for brew commands --quiet --- Library/Homebrew/test/cmd/commands_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/test/cmd/commands_spec.rb b/Library/Homebrew/test/cmd/commands_spec.rb index 07844087f0..ab3dd1bce9 100644 --- a/Library/Homebrew/test/cmd/commands_spec.rb +++ b/Library/Homebrew/test/cmd/commands_spec.rb @@ -6,6 +6,12 @@ describe "brew commands", :integration_test do it "prints a list of all available commands" do expect { brew "commands" } .to output(/Built-in commands/).to_stdout + .and not_to_output.to_stderr + .and be_a_success + + expect { brew "commands", "--quiet" } + .to output.to_stdout + .and not_to_output.to_stderr .and be_a_success end end