A frequently asked question has been how do you cause a test
verification to fail the test without immediately aborting it as well.
Frequent replies have been to wrap assertions with rescue blocks, which
raises all kinds of other problems. Here is a much better solution.
def verify boolean, message = 'verify failed.'
add_assertion
add_failure message, caller unless boolean
end
Define this method in your test case class, and then use it instead of
assert.
Bret
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general