formula_assertions: remove Ruby 2.0 compatibility.

We only support Ruby 2.3, now.
This commit is contained in:
Mike McQuaid 2017-12-08 16:45:41 +00:00
parent 5055c31a86
commit 4fa16c9428

View File

@ -3,11 +3,6 @@ module Homebrew
require "test/unit/assertions"
include ::Test::Unit::Assertions
# TODO: remove this when we no longer support Ruby 2.0.
unless defined?(Test::Unit::AssertionFailedError)
Test::Unit::AssertionFailedError = MiniTest::Assertion
end
# Returns the output of running cmd, and asserts the exit status
def shell_output(cmd, result = 0)
ohai cmd