On Sun, Mar 27, 2011 at 1:56 PM, Pixel wrote:
> On Sat, Mar 26, 2011 at 8:18 PM, Huw Nichols
> wrote:
> > 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
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
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