From d955277a8be0eede8bc73a13f821250e11d9b7f8 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 26 Feb 2021 22:39:34 +0000 Subject: [PATCH] formula_assertions: add assert_true compat method --- Library/Homebrew/formula_assertions.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index 4c1e88f479..f331f3d5ff 100644 --- a/Library/Homebrew/formula_assertions.rb +++ b/Library/Homebrew/formula_assertions.rb @@ -41,6 +41,11 @@ module Homebrew 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. # @api public def shell_output(cmd, result = 0)