Spork doesnt reload code

Posted by there-is-no-spoon on Stack Overflow See other posts from Stack Overflow or by there-is-no-spoon
Published on 2012-04-24T09:44:50Z Indexed on 2012/06/26 9:16 UTC
Read the original article Hit count: 186

I am using following gems and ruby-1.9.3-p194:

  • rails 3.2.3

  • rspec-rails 2.9.0

  • spork 1.0.0rc2

  • guard-spork 0.6.1

Full list of used gems is available in this Gemfile.lock or Gemfile.

And I am using this configuration files:

If I modify any model (or custom validator in app/validators etc) reloading code doesnt works.

I mean when I run specs (hit Enter on guard console) Spork contain "old code" and I got obsolete error messages. But when I manually restart Guard and Spork (CTRC-C CTRL-d guard) everything works fine. But it is getting tired after few times.

Questions:

Can somebody look at my config files please and fix error which block updating code.

Or maybe this is an issue of newest Rails version?


PS This problem repeats and repeats over some projects (and on some NOT). But I haven't figured out yet why this is happens.

PS2 Perhaps this problem is something to do with ActiveAdmin? When I change file in app/admin code is reloaded.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-3