Records a Test::Unit::Notification.
# File lib/test/unit/notification.rb, line 112 def add_notification(notification) @notifications << notification notify_fault(notification) notify_changed end
Returns the number of notifications this TestResult has recorded.
# File lib/test/unit/notification.rb, line 120 def notification_count @notifications.size end
# File lib/test/unit/notification.rb, line 125 def initialize_containers super @notifications = [] @summary_generators << :notification_summary end
# File lib/test/unit/notification.rb, line 131 def notification_summary "#{notification_count} notifications" end