formula_assertions: add assert_true compat method

This commit is contained in:
Bo Anderson 2021-02-26 22:39:34 +00:00
parent a65c5d685c
commit d955277a8b
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -41,6 +41,11 @@ module Homebrew
end end
end end
def assert_true(act, msg = nil)
# odeprecated "assert_true", "assert(...) or assert_equal(true, ...)"
assert_equal(true, act, msg)
end
# Returns the output of running cmd, and asserts the exit status. # Returns the output of running cmd, and asserts the exit status.
# @api public # @api public
def shell_output(cmd, result = 0) def shell_output(cmd, result = 0)