On Oct 12, 6:38 am, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
> I tried as fee.per_person_rate = 0 as well but it was giving me the same
> failure so I put 0.0 as I have declared it as float but still getting
> the same failure. So, can someone please let me know why coz this is my
> first time doing unit testing. Thanks.

Assuming the failure is on the last assertion it's probably because
you've never set family_rate, but your validation asserts that it is
greater than 0.01. You could stick a breakpoint before the test fails
and poke around to see exactly why the object is not valid (or just
print the errors object to the screen or something like that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to