Module: Test::Unit::TestResultOmissionSupport
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/test/unit/omission.rb |
Instance Attribute Summary
- #omissions readonly
Instance Method Summary
-
#add_omission(omission)
Records a Omission.
-
#omission_count
Returns the number of omissions this TestResult has recorded.
- #initialize_containers private
- #omission_summary private
Instance Attribute Details
#omissions (readonly)
[ GitHub ]# File 'lib/test/unit/omission.rb', line 168
attr_reader :omissions
Instance Method Details
#add_omission(omission)
Records a Omission.
# File 'lib/test/unit/omission.rb', line 171
def add_omission(omission) @omissions << omission notify_fault(omission) notify_changed end
#initialize_containers (private)
[ GitHub ]# File 'lib/test/unit/omission.rb', line 184
def initialize_containers super @omissions = [] @summary_generators << :omission_summary end
#omission_count
Returns the number of omissions this TestResult has recorded.
# File 'lib/test/unit/omission.rb', line 179
def omission_count @omissions.size end
#omission_summary (private)
[ GitHub ]# File 'lib/test/unit/omission.rb', line 190
def omission_summary "#{omission_count} omissions" end