Merge pull request #3546 from MikeMcQuaid/formula_assertions_ruby_23

formula_assertions: remove Ruby 2.0 compatibility.
This commit is contained in:
Mike McQuaid 2017-12-08 21:01:32 +00:00 committed by GitHub
commit e72fde418b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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