mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
formula_assertions: add assert_true compat method
This commit is contained in:
parent
a65c5d685c
commit
d955277a8b
@ -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