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.4/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.4/lib/test/unit/notification.rb, line 122
def notification_count
  @notifications.size
end