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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---