[Wtr-general] <nil> is not true with assert(ie.contains_text)
Adrian Rutter
Adrian.Rutter at tnt.com
Mon Jun 12 11:48:17 EDT 2006
sorry about the last header
Charley
>That's because you're swallowing the exception in your rescue clause. You
>want it to be raised and caught by Test::Unit so that it can see it for
>reporting. You need to either get rid of the rescue and ensure blocks or
>rethrow the exception (in which case you might want to wrap the original
> exception).
> raise Test::Unit::AssertionFailedError,
> "in my testcase: #{e.message}",
> e.backtrace
Thanks Charley. Could I write an example and submit it to the user guide?
Aidy
---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system.
If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
More information about the Wtr-general
mailing list