guard / guard-spork

Guard::Spork automatically manage Spork DRb servers
https://rubygems.org/gems/guard-spork
MIT License
296 stars 58 forks source link

Class reloading not working properly: proposed hack #25

Closed jeroenvandijk closed 13 years ago

jeroenvandijk commented 13 years ago

Hi,

Thanks for this great gem. I have setup Guard with Guard-RSpec, Guard-Cucumber and Guard-Spork for my Rails 3.0.7 application, but reloading of models doesn't work properly.

I've followed some tutorials, but either they are outdated or I completely missed something because I couldn't get the class reloading working properly. So I have created a simple hack in my Guardfile that worked for me so far: https://gist.github.com/1108891

Is this hack really needed? And if so shouldn't this in a certain form be a part of Guard-Spork?

Thanks, Jeroen

jeroenvandijk commented 13 years ago

Forget my hack. It doesn't work. I read the Spork wiki once more and I saw that I had to work around RailsAdmin and Device too: https://github.com/timcharper/spork/wiki/Spork.trap_method-Jujutsu

The suggested work around in http://blog.carbonfive.com/2010/12/10/speedy-test-iterations-for-rails-3-with-spork-and-guard/ still work