Records a Test::Unit::Error.
# File lib/test/unit/error.rb, line 125 def add_error(error) @errors << error notify_fault(error) notify_changed end
Returns the number of errors this TestResult has recorded.
# File lib/test/unit/error.rb, line 133 def error_count @errors.size end
# File lib/test/unit/error.rb, line 137 def error_occurred? not @errors.empty? end