Module: Test::Unit::TestResultPendingSupport
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/test/unit/pending.rb |
Instance Attribute Summary
- #pendings readonly
Instance Method Summary
-
#add_pending(pending)
Records a Pending.
-
#pending_count
Returns the number of pendings this TestResult has recorded.
- #initialize_containers private
- #pending_summary private
Instance Attribute Details
#pendings (readonly)
[ GitHub ]# File 'lib/test/unit/pending.rb', line 127
attr_reader :pendings
Instance Method Details
#add_pending(pending)
Records a Pending.
# File 'lib/test/unit/pending.rb', line 130
def add_pending(pending) @pendings << pending notify_fault(pending) notify_changed end
#initialize_containers (private)
[ GitHub ]# File 'lib/test/unit/pending.rb', line 143
def initialize_containers super @pendings = [] @summary_generators << :pending_summary end
#pending_count
Returns the number of pendings this TestResult has recorded.
# File 'lib/test/unit/pending.rb', line 138
def pending_count @pendings.size end
#pending_summary (private)
[ GitHub ]# File 'lib/test/unit/pending.rb', line 149
def pending_summary "#{pending_count} pendings" end