Sent from my iPhone
On 12 Oct 2008, at 11:29, Jay Pangmi <[EMAIL PROTECTED]
s.net> wrote:
>
> Frederick Cheung wrote:
>
>> 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.
>
> Thanks fred. Sorry, actually I tried valdating family_rate as well
> defining method test_positive_family_rate similar to
> test_positive_perpersonrate method. When I tried with family_rate as
> well I got two failures. And about sticking the breakpoint I'm not
> sure
> how to do..
>
Adding an extra test isn't going to help. Your test isn't passing
because your object is not valid
Fred
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---