From: Daniel Berger Date: 2007-11-09T00:37:58+09:00 Subject: Re: Test::Unit Equivalent of JUnit @AfterClass On Nov 8, 12:39 am, Ryan Davis wrote: > On Nov 7, 2007, at 21:55 , Patrick Joyce wrote: > > > The reason I need to do this is that Rails leaves old fixture data in > > the DB after each TestCase is run. This just doesn't seem right to me, > > as I think each TestCase should start with the same state, but that is > > another issue. The immediate problem is that this can cause tests to > > fail if there are foreign key constraints. For example: > > No, it isn't another issue... it is bug 2404 in the rails bug db. > > http://dev.rubyonrails.org/ticket/2404 It's our favorite bug Ryan! Yep, going OT here... That bug alone really made my Rails test suite suffer for an existing app. I don't even try to implement FK's at the database layer any more with Rails as a result. I wonder if Merb fixed this... Regards, Dan