Is there a way to preload common data made by factory_girl to speed up tests instead of recreating these common data at the beginning of every test. For example, I want to have 10 users premade at the beginning of every test. I found this http://agilewebdevelopment.com/plugins/factory_data_preloader But the page says that this plugin does not "play nice" with autotest. But I use autotest. Is there another solution? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Learn by Doing wrote:> Is there a way to preload common data made by factory_girl to speed up > tests instead of recreating these common data at the beginning of > every test. For example, I want to have 10 users premade at the > beginning of every test.No, you probably don''t. Factories aren''t fixtures and shouldn''t be used in the same way.> > I found this > http://agilewebdevelopment.com/plugins/factory_data_preloader > But the page says that this plugin does not "play nice" with > autotest. But I use autotest. Is there another solution?Use factories correctly. Don''t try to prematurely optimize your tests.> > Thanks.Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks Marnen. I''ll heed your advice. On Feb 3, 7:29 pm, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Learn by Doing wrote: > > Is there a way to preload common data made by factory_girl to speed up > > tests instead of recreating these common data at the beginning of > > every test. For example, I want to have 10 users premade at the > > beginning of every test. > > No, you probably don''t. Factories aren''t fixtures and shouldn''t be used > in the same way. > > > > > I found this > >http://agilewebdevelopment.com/plugins/factory_data_preloader > > But the page says that this plugin does not "play nice" with > > autotest. But I use autotest. Is there another solution? > > Use factories correctly. Don''t try to prematurely optimize your tests. > > > > > Thanks. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.