Arshak Navruzyan wrote:> Hello,
>
> I have a before_validation_on_create callback on one of my models. It
> works fine when I run it through the console in dev/prod but in test
> (also going against mysql) it doesn''t seem to fire.
Post your test code. It should raise an exception on create! , and should return
nil on create(). So if you miss either of those, the validation appears to not
work.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---