123456789_123456789_123456789_123456789_123456789_

Module: Test::Unit::TestResultPendingSupport

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/test/unit/pending.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#pendings (readonly)

[ GitHub ]

  
# File 'lib/test/unit/pending.rb', line 128

attr_reader :pendings

Instance Method Details

#add_pending(pending)

Records a Pending.

[ GitHub ]

  
# File 'lib/test/unit/pending.rb', line 131

def add_pending(pending)
  @pendings << pending
  notify_fault(pending)
  notify_changed
end

#initialize_containers (private)

[ GitHub ]

  
# File 'lib/test/unit/pending.rb', line 144

def initialize_containers
  super
  @pendings = []
  @summary_generators << :pending_summary
end

#pending_count

Returns the number of pendings this TestResult has recorded.

[ GitHub ]

  
# File 'lib/test/unit/pending.rb', line 139

def pending_count
  @pendings.size
end

#pending_summary (private)

[ GitHub ]

  
# File 'lib/test/unit/pending.rb', line 150

def pending_summary
  "#{pending_count} pendings"
end