[rspec-users] calbacks on models

Huw huw at newbeatsmedia.com
Sun Mar 27 12:06:43 EDT 2011

On Sun, Mar 27, 2011 at 1:56 PM, Pixel <thecatwasnot at gmail.com> wrote:

> On Sat, Mar 26, 2011 at 8:18 PM, Huw Nichols <huw.nichols at gmail.com>
> 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 should - looking into that next
> > Reloading spork (or killing it and running native) and all tests work as
> > expected.
> > Sorry for time waste
> > H
> I've seen this same problem with a very similar setup.  I believe it's
> got to do with the way devise loads up the user model when routes are
> loaded, so basically it's a problem between spork and devise.  (I use
> guard as well, but I don't think it is related.)
> I tried:
> https://github.com/timcharper/spork/wiki/Spork.trap_method-Jujutsu
> With no luck.  You might want to take it to the spork mailing list.
Have a look at the very latest spork (0.9.0.rc4) on github - I can't recall
where I saw it mentioned yesterday but the combo of that devise fix you
linked to  and upgrading spork seems to be working for me now..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110327/46e82d07/attachment.html>

More information about the rspec-users mailing list