Merge pull request #10718 from Bo98/assert_true
formula_assertions: add assert_true compat method
This commit is contained in:
commit
258a161ef8
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user