views:

13

answers:

1

For the run(result) method in test/unit/testcase.rb what attribute type should my result be of .It will store the result from the error and assertions from the TestCase class i dono if it should be TestCase object or something dono.. could someone help

A: 

It should be a Test::Unit::TestResult so that it provides the add_failure, add_error and add_assertion methods.

mikej