Re: [rspec-users] calbacks on models

2011-03-26 Thread Huw Nichols
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

Re: [rspec-users] calbacks on models

2011-03-26 Thread Huw Nichols
OK, found the problem and it's not rspec - my bad... Turns out that my spork config using guard etc. does not reload model files as it should - looking into that next Reloading spork (or killing it and running native) and all tests work as expected. Sorry for time waste H