From d3ae3419a91ad36f355ec90c3595202a10a61a33 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 21 Oct 2014 22:43:46 -0500 Subject: [PATCH] Correct description of how to fail tests Fixes Homebrew/homebrew#33463. --- Library/Contributions/example-formula.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb index 5c656b8382..cb47261dc3 100644 --- a/Library/Contributions/example-formula.rb +++ b/Library/Contributions/example-formula.rb @@ -398,8 +398,8 @@ class ExampleFormula < Formula assert_equal "result", stdout.read end - # If an exception is raised (e.g. by assert), or if we return false, or if - # the command run by `system` prints to stderr, we consider the test failed. + # The test will fail if it returns false, or if an exception is raised. + # Failed assertions and failed `system` commands will raise exceptions. end