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