Module: Test::Unit::TestResultNotificationSupport
- Included in:
- TestResult
- Defined in:
- lib/test/unit/notification.rb
Instance Attribute Summary collapse
-
#notifications ⇒ Object
readonly
Returns the value of attribute notifications.
Instance Method Summary collapse
-
#add_notification(notification) ⇒ Object
Records a Test::Unit::Notification.
-
#notification_count ⇒ Object
Returns the number of notifications this TestResult has recorded.
Instance Attribute Details
#notifications ⇒ Object (readonly)
Returns the value of attribute notifications.
102 103 104 |
# File 'lib/test/unit/notification.rb', line 102 def notifications @notifications end |
Instance Method Details
#add_notification(notification) ⇒ Object
Records a Test::Unit::Notification.
105 106 107 108 109 |
# File 'lib/test/unit/notification.rb', line 105 def add_notification(notification) @notifications << notification notify_fault(notification) notify_changed end |
#notification_count ⇒ Object
Returns the number of notifications this TestResult has recorded.
113 114 115 |
# File 'lib/test/unit/notification.rb', line 113 def notification_count @notifications.size end |