test: use Test::Unit class.

This commit is contained in:
Mike McQuaid 2017-07-07 09:44:02 +01:00 committed by GitHub
parent 7aaa7e1b79
commit 5c2fa1fc1f

View File

@ -83,7 +83,7 @@ module Homebrew
exec(*args) exec(*args)
end end
end end
rescue Homebrew::Assertions::AssertionFailed => e rescue ::Test::Unit::AssertionFailedError => e
ofail "#{f.full_name}: failed" ofail "#{f.full_name}: failed"
puts e.message puts e.message
rescue Exception => e rescue Exception => e