I have a model which gets its data from a parser object. I’m thinking that the parser class should live in the lib/ directory (although I could be persuaded that it should live soewhere else). The question is: Where should my unit tests for the parser class be? And how do I ensure that they are run each time I run rake test?
Share
In the Rails application I’m working on, I decided to just place the tests in the
test\unitdirectory. I will also nest them by module/directory as well, for example:For me, this was the path of last resistance, as these tests ran without having to make any other changes.