aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-21 22:43:46 -0500
committerJack Nagel2014-10-21 22:43:46 -0500
commitd3ae3419a91ad36f355ec90c3595202a10a61a33 (patch)
tree119cca506b5dc4fa79ab4c35098bbd6819dc6103 /Library
parentf29376c867571c2416ef698ad11421a212caeb68 (diff)
downloadbrew-d3ae3419a91ad36f355ec90c3595202a10a61a33.tar.bz2
Correct description of how to fail tests
Fixes Homebrew/homebrew#33463.
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/example-formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb
index 5c656b838..cb47261dc 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