DECISION:
I resolved it by adding the 'ignore' statement to my Guardfile. For my rails 3 project, it looked like this (./Guardfile):
ignore([%r{^bin/*}, %r{^config/*}, %r{^db/*}, %r{^lib/*}, %r{^log/*}, %r{^public/*}, %r{^tmp/*}]) guard 'rspec', cmd: 'spring rspec', all_after_pass: false, all_on_start: false, focus_on_failed: true do
This seems like best practice for guard / rspec / rails.
Protect βignoreβ information: https://github.com/guard/guard#ignore
MY PROBLEM
I came across something very similar on my mac os x 10.9 machine using:
- spring (1.0.0)
- rb-fsevent (0.9.3)
- growl (1.0.3)
- rspec-core (2.14.7)
- rspec-wait (2.14.4)
- rspec-mocks (2.14.4)
- rspec (2.14.1)
- guard-rspec (4.2.0)
- listen (2.4.0)
- rspec-rails (2.14.0)
- rails (3.2.15)
after starting protection to run my rspec tests, the protection process jumped up to 100% of the load on one core, while it was idle, it remained the way it was long enough so that I could qualify as forever. :)
I tried to start the guard
- with forced poll
- without `watch 'instructions
- with spring
- without spring
Without changes.
My colleague is working on linux in the same project, so he uses rb-inotify instead of rb-fsevent. It did not boot at idle (as you would expect for mac os too).
As written above, my solution was to add the 'ignore' file to my Guard file.
source share