and figured it would answer my problems. Basically I'm running guard-spork to reload spork for env changes, and guard-rspec to automatically run my spec when it (or the related model file) change.
But if I change the model file, the change is not picked up, thus the test incorrectly reports pass/failure for various specs that depend on the changed behavior.
Ugh, nevermind. This was my own stupidity. Triple checked this was really an issue, but it turns out I had a typo, so my models weren't being called at all.
I read this: https://github.com/timcharper/spork/wiki/Spork.trap_method-Jujutsu
and figured it would answer my problems. Basically I'm running guard-spork to reload spork for env changes, and guard-rspec to automatically run my spec when it (or the related model file) change.
But if I change the model file, the change is not picked up, thus the test incorrectly reports pass/failure for various specs that depend on the changed behavior.
I have the following in my
Spork.prefork
block:Is there something else I need to be doing, perhaps in the
each_run
block, to make sure my models are reloaded?