Summary

Let’s recap what we’ve learned throughout the chapter.

We'll cover the following

We’ve learned a lot about model testing, from the services Rails provides for testing models and fixtures, to factories as mechanisms for creating consistent test data. We’ve begun to transition from testing models to test the application’s user-facing parts with this chapter. Mock testing is useful for testing models, but it becomes beneficial when trying to shield the various layers of the application from each other.

Get hands-on with 1200+ tech skills courses.