Class: ResultCase
Instance Attribute Summary collapse
-
#n_test ⇒ Object
Returns the value of attribute n_test.
-
#tests ⇒ Object
Returns the value of attribute tests.
Attributes inherited from Result
#elapsed, #name, #passed, #result, #started, #status
Instance Method Summary collapse
- #<<(test) ⇒ Object
-
#initialize(n) ⇒ ResultCase
constructor
A new instance of ResultCase.
Constructor Details
#initialize(n) ⇒ ResultCase
Returns a new instance of ResultCase.
326 327 328 329 330 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 326 def initialize n super n @tests = [] @n_test = 0 end |
Instance Attribute Details
#n_test ⇒ Object
Returns the value of attribute n_test.
324 325 326 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 324 def n_test @n_test end |
#tests ⇒ Object
Returns the value of attribute tests.
324 325 326 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 324 def tests @tests end |
Instance Method Details
#<<(test) ⇒ Object
332 333 334 335 |
# File 'lib/test/unit/ui/html/testrunner.rb', line 332 def << (test) @tests.push test @n_test += 1 end |