RubyFlow The Ruby and Rails community linklog

Tackling Those Tests, Part 2: Getting Fun and Functional With FactoryGirl

The most comprehensive test suite is nothing without the appropriate amount – and type – of test data to support it. The factory_girl gem is one of the most efficient and painless ways of creating test data within a Rails app. This post explains how to effectively make use of FactoryGirl in your application, and which bugs you should avoid along the way.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in