[rspec-users] calbacks on models

Justin Ko jko170 at gmail.com
Sat Mar 26 17:41:33 EDT 2011



On Mar 26, 2011, at 12:36 PM, Huw Nichols <huw.nichols at gmail.com> wrote:

> Hi,
> 
> 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 Rspec2
> 
> 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 ?
> 
> Thanks
> 
> H
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


Got code?


More information about the rspec-users mailing list