Module: Test::Unit::TestResultOmissionSupport
- Included in:
- TestResult
- Defined in:
- lib/test/unit/omission.rb
Instance Attribute Summary collapse
-
#omissions ⇒ Object
readonly
Returns the value of attribute omissions.
Instance Method Summary collapse
-
#add_omission(omission) ⇒ Object
Records a Test::Unit::Omission.
-
#omission_count ⇒ Object
Returns the number of omissions this TestResult has recorded.
Instance Attribute Details
#omissions ⇒ Object (readonly)
Returns the value of attribute omissions.
164 165 166 |
# File 'lib/test/unit/omission.rb', line 164 def omissions @omissions end |
Instance Method Details
#add_omission(omission) ⇒ Object
Records a Test::Unit::Omission.
167 168 169 170 171 |
# File 'lib/test/unit/omission.rb', line 167 def add_omission(omission) @omissions << omission notify_fault(omission) notify_changed end |
#omission_count ⇒ Object
Returns the number of omissions this TestResult has recorded.
175 176 177 |
# File 'lib/test/unit/omission.rb', line 175 def omission_count @omissions.size end |