Adding custom directories (source and specification) to autotest in a Rails 3 project

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.

+3
source share
1 answer

It looks the way you want: http://seandenigris.com/blog/?p=337

+2
source

Source: https://habr.com/ru/post/1762382/


All Articles