Support older Minitest constant

This commit is contained in:
Jack Nagel 2014-06-12 21:27:39 -05:00
parent 3f3ba8462e
commit e9cf30eb2c

View File

@ -9,6 +9,8 @@ module Homebrew extend self
if Object.const_defined?(:Minitest)
FailedAssertion = Minitest::Assertion
elsif Object.const_defined?(:MiniTest)
FailedAssertion = MiniTest::Assertion
else
FailedAssertion = Test::Unit::AssertionFailedError
end