Class: ResultTest
Instance Attribute Summary collapse
-
#assertions ⇒ Object
Returns the value of attribute assertions.
-
#faults ⇒ Object
Returns the value of attribute faults.
-
#interrupted ⇒ Object
Returns the value of attribute interrupted.
Attributes inherited from Result
#elapsed, #name, #passed, #result, #started, #status
Instance Method Summary collapse
- #<<(fault) ⇒ Object
- #assertion ⇒ Object
-
#initialize(n) ⇒ ResultTest
constructor
A new instance of ResultTest.
Constructor Details
#initialize(n) ⇒ ResultTest
Returns a new instance of ResultTest.
341 342 343 344 345 346 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 341 def initialize n super n @faults = [] @assertions = 0 @n_test = 0 end |
Instance Attribute Details
#assertions ⇒ Object
Returns the value of attribute assertions.
339 340 341 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 339 def assertions @assertions end |
#faults ⇒ Object
Returns the value of attribute faults.
339 340 341 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 339 def faults @faults end |
#interrupted ⇒ Object
Returns the value of attribute interrupted.
339 340 341 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 339 def interrupted @interrupted end |
Instance Method Details
#<<(fault) ⇒ Object
348 349 350 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 348 def << (fault) @faults.push fault end |
#assertion ⇒ Object
352 353 354 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 352 def assertion @assertions += 1 end |