Module: Test::Unit::TestResultPendingSupport
- Included in:
- TestResult
- Defined in:
- lib/test/unit/pending.rb
Instance Attribute Summary collapse
-
#pendings ⇒ Object
readonly
Returns the value of attribute pendings.
Instance Method Summary collapse
-
#add_pending(pending) ⇒ Object
Records a Test::Unit::Pending.
-
#pending_count ⇒ Object
Returns the number of pendings this TestResult has recorded.
Instance Attribute Details
#pendings ⇒ Object (readonly)
Returns the value of attribute pendings.
123 124 125 |
# File 'lib/test/unit/pending.rb', line 123 def pendings @pendings end |
Instance Method Details
#add_pending(pending) ⇒ Object
Records a Test::Unit::Pending.
126 127 128 129 130 |
# File 'lib/test/unit/pending.rb', line 126 def add_pending(pending) @pendings << pending notify_fault(pending) notify_changed end |
#pending_count ⇒ Object
Returns the number of pendings this TestResult has recorded.
134 135 136 |
# File 'lib/test/unit/pending.rb', line 134 def pending_count @pendings.size end |