[rspec-users] calbacks on models

Huw Nichols huw.nichols at gmail.com
Sat Mar 26 15:36:02 EDT 2011


Just been looking for answers to this very question:

I have a User model (using devise) and the same problem.

Both the before_create and after_create callbacks fail to run from within 

I can even put invalid code in the callbacks and it is not detected until I 
switch to dev and run through the browser - then it all works as expected.

rails 3.0.5 and sqlite
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0) 

Has anyone had any thoughts on this as yet ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110326/9a8bedf3/attachment.html>

More information about the rspec-users mailing list