Having done TDD and unit tests in general before coming (recently) to
and RoR, a question comes to my mind: do many people write unit tests
do not interact with the database ? The skeletton of unit tests
automatically when creating a new model class seems to assume the common
behaviour is to test against the database rather than in memory.
Please note that I understand the benefits of testing against the
but I’d like to know if it’s also a common habit when writing RoR apps
add non-db related unit tests for the model…
Any advice or opinion ?