module Test::Unit::TestResultOmissionSupport

Attributes

omissions[R]

Public Instance Methods

add_omission(omission) click to toggle source

Records a Test::Unit::Omission.

# File lib/test/unit/omission.rb, line 171
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 lib/test/unit/omission.rb, line 179
def omission_count
  @omissions.size
end

Private Instance Methods

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