I have a Rails 3 application that uses RSpec2 as my testing platform, and I can use autotest to view my models and specifications for changes and re-run my specifications package when files change.
I would like to add to it a directory with some user classes (RAILS_ROOT / lib / some_project / lib / .rb) and their corresponding specifications (RAILS_ROOT / spec / some_project / _spec.rb) so that the autotest automatically selects to change all the files and restart them as needed.
How to get autotest to view these files in these other directories? I suspect I should add something to RAILS_ROOT / autotest / discover.rb, but I'm not quite sure what to do.
source
share