Are you sure this is due to spork? I just fixed a similar problem with the autotest and the infinite loop, where some components (simple in this case) kept updating the files in the directory, and the autotest selected them as mutable and, therefore, repeated the tests. To solve the problem, find out if spork writes to any file / directory in your tree and adds this to the exclusion list for autotest, for example:
~/ruby/project$ cat .autotest
Autotest.add_hook :initialize do |at|
at.add_exception(%r{^\./\.git})
at.add_exception(%r{^\./your_culprit})
end
Perhaps a github doc makes it more comprehensible.
Hope this helps
source
share