module Test::Unit::TestResultPendingSupport
Attributes
pendings[R]
Public Instance Methods
add_pending(pending)
click to toggle source
Records a Test::Unit::Pending.
# File lib/test/unit/pending.rb, line 130 def add_pending(pending) @pendings << pending notify_fault(pending) notify_changed end
pending_count()
click to toggle source
Returns the number of pendings this TestResult has recorded.
# File lib/test/unit/pending.rb, line 138 def pending_count @pendings.size end
Private Instance Methods
initialize_containers()
click to toggle source
Calls superclass method
# File lib/test/unit/pending.rb, line 143 def initialize_containers super @pendings = [] @summary_generators << :pending_summary end
pending_summary()
click to toggle source
# File lib/test/unit/pending.rb, line 149 def pending_summary "#{pending_count} pendings" end