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