[rspec-users] Unwanted fixture data messing up my other tests

David Chelimsky dchelimsky at gmail.com
Thu Feb 21 08:24:27 EST 2008

On Thu, Feb 21, 2008 at 6:17 AM, Max Williams
<toastkid.williams at gmail.com> wrote:
> I have a fixture for one of my tables that i use in some model tests.  The
> data in it is messing up some other tests for a different model, that
> doesn't ask for the fixture - isn't the fixture data supposed to be cleared
> out of the test db in between tests, and only be present if specifically
> asked for?  or am i using them wrong?

It depends on settings you have in spec_helper.rb. You should have this:

  config.use_transactional_fixtures = true

You should also not be declaring any fixtures in spec_helper.rb, given
your situation.


> thanks
> max
> _______________________________________________
>  rspec-users mailing list
>  rspec-users at rubyforge.org
>  http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list