开发者

Sample/Dummy Data Generation in Rails 3

开发者 https://www.devze.com 2023-02-02 16:01 出处:网络
Is there a standard gem for 开发者_Python百科creating data for testing purposes for Rails 3? I am interested in using Faker or Forgery but is there a better approach?

Is there a standard gem for 开发者_Python百科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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号