Module: Test::Unit::TestResultOmissionSupport

Included in:
TestResult
Defined in:
lib/test/unit/omission.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) omissions (readonly)

Returns the value of attribute omissions



168
169
170
# File 'lib/test/unit/omission.rb', line 168

def omissions
  @omissions
end

Instance Method Details

- (Object) add_omission(omission)

Records a Test::Unit::Omission.



171
172
173
174
175
# File 'lib/test/unit/omission.rb', line 171

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

- (Object) omission_count

Returns the number of omissions this TestResult has recorded.



179
180
181
# File 'lib/test/unit/omission.rb', line 179

def omission_count
  @omissions.size
end