Ensure brew cat output is empty on failure.
This commit is contained in:
parent
f438fa98be
commit
e26311236f
@ -14,6 +14,7 @@ describe "brew", :integration_test do
|
|||||||
it "prints help when no argument is given" do
|
it "prints help when no argument is given" do
|
||||||
expect { brew "cat" }
|
expect { brew "cat" }
|
||||||
.to output(/^Usage: brew cat/).to_stderr
|
.to output(/^Usage: brew cat/).to_stderr
|
||||||
|
.and not_to_output.to_stdout
|
||||||
.and be_a_failure
|
.and be_a_failure
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user