On May 25, 2011, at 2:00 PM, Ken Egervari wrote:
> I am using factory_girl, and I have discovered that it is chiefly responsible
> for making my tests run slow.
>
> I have posted a question about this on Stack Overflow:
>
> http://stackoverflow.com/questions/6128476/how-can-i-get-factory-girl-to-never-hit-the-database-if-i-am-calling-factory-buil
>
> Anyway, I was curious what you guys use to create Factories?
>
> 1. Do you put up with Factory_girl?
> 2. Did you configure Factory_girl differently to make it run faster?
> 3. Do you use something else? May I ask what?
>
> Thanks!
>
> Ken
The factory girl docs on http://rubydoc.info/gems/factory_girl/1.3.3/frames
offer a few options. Look for the :default_strategy option and the :factory
option on association.
HTH,
David
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users