123456789_123456789_123456789_123456789_123456789_

Module: Test::Unit::TestResultOmissionSupport

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

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#omissions (readonly)

[ GitHub ]

  
# File 'lib/test/unit/omission.rb', line 171

attr_reader :omissions

Instance Method Details

#add_omission(omission)

Records a Omission.

[ GitHub ]

  
# File 'lib/test/unit/omission.rb', line 174

def add_omission(omission)
  @omissions << omission
  notify_fault(omission)
  notify_changed
end

#initialize_containers (private)

[ GitHub ]

  
# File 'lib/test/unit/omission.rb', line 187

def initialize_containers
  super
  @omissions = []
  @summary_generators << :omission_summary
end

#omission_count

Returns the number of omissions this TestResult has recorded.

[ GitHub ]

  
# File 'lib/test/unit/omission.rb', line 182

def omission_count
  @omissions.size
end

#omission_summary (private)

[ GitHub ]

  
# File 'lib/test/unit/omission.rb', line 193

def omission_summary
  "#{omission_count} omissions"
end