class Minitest::Test

def error?

def error?
  self.failures.any? { |f| UnexpectedError === f }
end