module Test::Unit::TestResultOmissionSupport

Attributes

omissions[R]

Public Instance Methods

add_omission(omission) click to toggle source

Records a Test::Unit::Omission.

# File test-unit-3.6.4/lib/test/unit/omission.rb, line 174
def add_omission(omission)
  @omissions << omission
  notify_fault(omission)
  notify_changed
end
omission_count() click to toggle source

Returns the number of omissions this TestResult has recorded.

# File test-unit-3.6.4/lib/test/unit/omission.rb, line 182
def omission_count
  @omissions.size
end

Private Instance Methods

initialize_containers() click to toggle source
Calls superclass method
# File test-unit-3.6.4/lib/test/unit/omission.rb, line 187
def initialize_containers
  super
  @omissions = []
  @summary_generators << :omission_summary
end
omission_summary() click to toggle source
# File test-unit-3.6.4/lib/test/unit/omission.rb, line 193
def omission_summary
  "#{omission_count} omissions"
end