module Test::Unit::TestResultNotificationSupport

Attributes

notifications[R]

Public Instance Methods

add_notification(notification) click to toggle source

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
notification_count() click to toggle source

Returns the number of notifications this TestResult has recorded.

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

Private Instance Methods

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