What can We do in a Model Test?
Get an overview of the model-view-controller and what we’ll do in this chapter.
We'll cover the following...
Model-view-controller
A standard Rails application uses a design pattern called MVC, which stands for model-view-controller. Each of the three sections in the MVC pattern is a separate layer of code, which has its responsibilities and communicates with the other layers as infrequently as possible. In Rails, the model layer contains both business and persistence logic, with the persistence logic handled by ActiveRecord. Typically, all of our ...