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

#omissionsObject (readonly)

Returns the value of attribute omissions.



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

def omissions
  @omissions
end

Instance Method Details

#add_omission(omission) ⇒ Object

Records a Test::Unit::Omission.



174
175
176
177
178
# File 'lib/test/unit/omission.rb', line 174

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

#omission_countObject

Returns the number of omissions this TestResult has recorded.



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

def omission_count
  @omissions.size
end