From e26311236f5f1752cde8b13551e43a0a87c7eee8 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 29 Nov 2020 17:57:10 +0100 Subject: [PATCH] Ensure `brew cat` output is empty on failure. --- Library/Homebrew/test/cmd/help_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/test/cmd/help_spec.rb b/Library/Homebrew/test/cmd/help_spec.rb index 4d0cf035d1..28ec9881ef 100644 --- a/Library/Homebrew/test/cmd/help_spec.rb +++ b/Library/Homebrew/test/cmd/help_spec.rb @@ -14,6 +14,7 @@ describe "brew", :integration_test do it "prints help when no argument is given" do expect { brew "cat" } .to output(/^Usage: brew cat/).to_stderr + .and not_to_output.to_stdout .and be_a_failure end end