Consider the three βlegsβ of the MVC (model-view-controller) design pattern on which Rails is based.
representation
They should be largely devoid of business logic: the code should be associated with the display of data and manipulation of the user interface.
Controllers
Minimal logic (the usual wisdom is to work with "thin controllers"). Testing (in the "test / functional" directory) should be simple and, I hope, mainly related to checking the contents of navigation and response. Begin with the idea of ββsimplifying them as long as possible, so you will be ready for more complex testing topics when you need them.
Models
-. , , , . , , .
, Noel Rappin Rails Prescriptions - () PDF-, Rails .