module Test::Unit::TestResultNotificationSupport

Attributes

notifications[R]

Public Instance Methods

add_notification(notification) click to toggle source

Records a Test::Unit::Notification.

# File test-unit-3.3.7/lib/test/unit/notification.rb, line 114
def add_notification(notification)
  @notifications << notification
  notify_fault(notification)
  notify_changed
end
notification_count() click to toggle source

Returns the number of notifications this TestResult has recorded.

# File test-unit-3.3.7/lib/test/unit/notification.rb, line 122
def notification_count
  @notifications.size
end

Private Instance Methods

initialize_containers() click to toggle source
Calls superclass method
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 127
def initialize_containers
  super
  @notifications = []
  @summary_generators << :notification_summary
end
notification_summary() click to toggle source
# File test-unit-3.3.7/lib/test/unit/notification.rb, line 133
def notification_summary
  "#{notification_count} notifications"
end