RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: authentication xTesting x
Factories not Fixtures (revised)
Episode #158 – Oct 27, 2011 – 44 comments

Factories not Fixtures (revised)

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. (9 minutes)
Factories not Fixtures
Episode #158 – Apr 20, 2009 – 67 comments

Factories not Fixtures

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. (12 minutes)
Webrat
Episode #156 – Apr 06, 2009 – 60 comments

Webrat

If you prefer writing integration tests in ruby instead of Cucumber's plain english, consider interacting with Webrat directly as I show in this episode. (7 minutes)