Railscasts #158: Factories not Fixtures

Posted in Development, Frameworks, Podcasts on April 20, 2009

Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show a better alternative using factories to generate the needed records.

Watch Video Watch Video Watch Video on External Site

Tags: Ruby, Ruby On Rails, Frameworks, Railscasts, Unit Testing, fixtures, Broadcasting, Screencasts, Development