阅读背景:

如何为我的rspec测试加速创建5,000条记录?

来源:互联网 

I am using Ruby on Rails 3.2.2, FactoryGirl 3.1.0, FactoryGirlRails 3.1.0, Rspec 2.9.0 and RspecRails 2.9.0. In order to test my application I have to create a lot of records (about 5000) in the database, but that operation is very slow (it takes more than 10 minutes to create records). I proceed like this:I am using Ruby on Rails 3.2.2, FactoryGirl 3.1




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: