From: Ryan Davis Date: 2007-11-08T16:39:25+09:00 Subject: Re: Test::Unit Equivalent of JUnit @AfterClass 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