Frederick Cheung wrote:
> Look at foo.errors
> 
> Something like
> puts foo.errors.inspect should do the trick.
> 
> Or stick
> debugger
> 
> In an appropriate part of your test. When you hit that line you'll
> drop into the debugger

I put the fee.errors.detect at:

def test_positive_perpersonrate
 fee=Fee.new
 ..................
 ..................
 puts fee.errors.detect
end

but it doesn't print anything except that already showing error 
message..
thanks

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to