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