Testing Your Rails App Models with RSpec

Test your model with your own RSpec

About the screencast

Models are the core of most applications and of course you want to have them thoroughly tested. Programmers consider models to be one of the simplest part of the app to start writing tests as they have few Rails-specific dependencies. After learning about loading sample data, you are ready to dive into writing some RSpec to test your model inside out! In this video you will learn about grouping specs into groups, introducing relations and a bunch of useful techniques to make your code more concise.

Source code for this video is available at https://github.com/learnable-content/RSpec-collection/tree/model_testing


Have your say! or become a member now to take part in the discussion