Forum: Ruby on Rails fixture not being removed after unit test?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
warhero (Guest)
on 2006-12-31 01:38
(Received via mailing list)
I am experiencing a problem with fixtures. I have two test suites, one
that tests a login controller, and one that tests a signup controller.
What's happening is I have to load in fixtures for the Login controller
tests (:emails, :users ). That test suite works fine.

But when it does the test for the Signup controller, those emails and
users are still in the database so some of my tests error out (error
when a user already exists).

how can I make the loaded fixtures drop out before moving onto another
test suite.

thanks.
This topic is locked and can not be replied to.