-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vamsi
Sent: Friday, April 13, 2007 5:35 AM
To: [EMAIL PROTECTED]
Subject: [Wtr-general] How to post a failed message when the assert fails

Hi

I am using this function : assert_equal(1,2) -->  when i execute this 
imeediatley will get the error message and stops the script execution.

insetad of that , is there any way to post failed message like "expected 1, but 
it was 2"

Thanks in advance.

Regards
Vamsi
_______________________________________________

[Arkie] What happens when you try

assert_equal(1,2,"expected 1, but it was 2")

I'm pretty sure that the assertions takes in an optional message to be 
displayed when the assert fails.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.2.0/757 - Release Date: 4/11/2007 5:14 PM
 
_______________________________________________
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to