Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Factories not Fixtures (revised)

#158 Factories not Fixtures (revised)

Oct 27, 2011 | 9 minutes | Testing, Tools
Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show how to use Factory Girl to generate the needed records directly in the tests.