On 3 March 2011 18:03, Peter Bell <pe...@pbell.com> wrote: > It seems like best practice is to use a factory gem like factory_girl instead > of fixtures. Easily getting different data for different tests is one of the > benefits of such an approach.
+1 You don't need to chuck everything out and start again however. For the tests that are giving you the problem at the moment start using a factory (I like machinist rather than factory_girl but it is a matter of personal preference) instead of the fixtures and as you add new tests or need to change old ones then do the same. There is no problem keeping the fixtures for the existing tests. Colin > > Best Wishes, > Peter > > On Mar 3, 2011, at 6:00 PM, Don.Mc wrote: > >> I am using Rails 3. Is there a way to stop a fixture from loading for >> certain test cases? >> >> Regards, >> Don Mc >> >> -- >> 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@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > 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@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.