module Test::Unit::TestResultErrorSupport
def add_error(error)
def add_error(error) @errors << error notify_fault(error) notify_changed end
def error_count
Returns the number of errors this TestResult has
def error_count @errors.size end
def error_occurred?
def error_occurred? not @errors.empty? end
def error_summary
def error_summary "#{error_count} errors" end
def initialize_containers
def initialize_containers super @errors = [] @summary_generators << :error_summary @problem_checkers << :error_occurred? end