Getting Started
Explore how to test the various Rails components such as views, controllers, routes, mailers, and background jobs. Understand the MVC pattern in Rails and learn testing strategies with RSpec and Rails testing tools, focusing on isolation and appropriate test types to create maintainable tests.
We'll cover the following...
We'll cover the following...
Model-view-controller (MVC) diagram
Rails applications have a specific structure, which starts with the model-view-controller (MVC) pattern. The view layer is responsible for presenting data to the user, a server-side web application that usually means generating HTML. Ideally, the view layer does this with minimal interaction with the model. The controller takes in information about the user request, contacts the appropriate parts of the ...