0

Is there a standard gem for creating data for testing purposes for Rails 3?

I am interested in using Faker or Forgery but is there a better approach?

What is the best way to generate and use sample data?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
amaseuk
  • 2,147
  • 4
  • 24
  • 43

1 Answers1

1

The two I'd recommend using would be factory_girl_rails by Thoughtbot and faker. These are by far the best two for generating sample data.

karlfreeman
  • 578
  • 7
  • 14