guard / guard-spork

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

Guard runs the test when a file is changed, but the test uses the old file. #117

Closed cmrichards closed 11 years ago

cmrichards commented 11 years ago

Ok, strange problem here.

When I alter a file (app/models/batch.rb) guard runs the related spec (spec/models/batch_spec.rb) as it should, but the code it uses for the test is the original file and not the modified file. This means that I have to reload guard every time I change a file. I've just installed guard/spork and I thought it worked when I first had it running.

Here's my Guardfile : https://gist.github.com/cmrichards/13d1cf78a80fedc25b7b and here's my spec/spec_helper.rb : https://gist.github.com/cmrichards/48582404b99f218bab1d

thibaudgg commented 11 years ago

I think it's an issue with your Spork configuration, please read https://github.com/sporkrb/spork#diagnostic-mode

Feel free to reopened it if you are still stuck.