Just as an example, if I have a Book model and a BooksController, autotest, part of the ZenTest suite will pick up the association between the two and load test/unit/book_test.rb and test/functional/books_controller_test.rb into the test suite. On the other hand, if I have a Story model and a StoriesController, autotest refuse to ‘notice’ the test/functional/stories_controller_test.rb
Just as an example, if I have a Book model and a BooksController ,
Share
I finally figured out what was going on, and it had nothing to do with pluralization after all.
It had everything to do with the word ‘stories‘ which can be a special directory for one of the testing libraries (RSpec? Cucumber? I forget) So it was listed in my ~/.autotest config file as an exception! I’m not sure when I cut and pasted the snippet into the file, probably when I was first getting starting with ZenTest and didn’t know what I was really doing.
Adding a trailing slash (‘stories/’) restored the test and removed the brick marks from my forehead.
So I guess the lesson learned is: check for stray configuration files when debugging.