aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/example-formula.rb
diff options
context:
space:
mode:
authorJack Nagel2014-10-21 22:43:46 -0500
committerJack Nagel2014-10-21 22:43:46 -0500
commit9e968794295e4353047dd1a55bb90d1a712857a5 (patch)
treecd7b7d1ed88aeafb2999da8536fefd4c16c1b679 /Library/Contributions/example-formula.rb
parent970c86cce65f6a72c9cef93f2f66cc391c762f66 (diff)
downloadhomebrew-9e968794295e4353047dd1a55bb90d1a712857a5.tar.bz2
Correct description of how to fail tests
Fixes #33463.
Diffstat (limited to 'Library/Contributions/example-formula.rb')
-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