Ashrafuz Zaman
2009-Feb-16 03:52 UTC
Problem regarding folder based fixtures and test code
We use folder based fixtures for each controllers and models. Here is how we load them in test classes, fixtures :shippers, :users, :user_types def fixture_path File.join(File.dirname(__FILE__), "../fixtures/shipper_controller") end Now individually each test code passes But testing the project(running all test at once) fails for some test code. We are assuming that some fixtures are not cleaned or some fixtures caused error inserting in database. We used FixtureScenarios plugin to resolve that problem. But FixtureScenarios do not provide facilities for flexible fixture as it was originally developed for rails 1.1.6 How people organize test fixtures? Do they use folder based fixture as we do? If people use folder based fixture then is any one facing problem? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ashrafuz Zaman
2009-Feb-17 03:12 UTC
Re: Problem regarding folder based fixtures and test code
Jeff Emminger wrote:> I don''t use fixtures. I use Factory Girl: > http://github.com/thoughtbot/factory_girl/tree/master > > > On Feb 15, 10:52�pm, Ashrafuz Zaman <rails-mailing-l...@andreas-s.net>Hi Jeff, I read about factory_girl and got interested. Have you used this in large project? -- 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---