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