[Rails] Design flaw with Fixtures?

Rick Bradley
2006-01-07T02:43:12Z

* Craig Hockenberry (craig@iconfactory.com) [060106
18:51]:
> I''ve been trying to add unit testing for collection of models with
> complex relationships -- and failing miserably.
>
> Because of the complexity of the relationships, I''m using a
database
> which validates foreign key constraints (PostgreSQL 8).
>
> I''m finding it nearly impossible to generate tests that are
independent
> of each other. The basic problem is the DELETE then INSERT nature of
> #create_fixtures.

Please have a look at:  http://dev.rubyonrails.org/ticket/2404


Rick
--
 http://www.rickbradley.com    MUPRN: 639
                       |  there should be a
   random email haiku  |  maximum length (e.g. bytes)
                       |  of that descriptions.