On Thu, Feb 21, 2008 at 6:17 AM, Max Williams
<[EMAIL PROTECTED]> 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.

HTH,
David

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

Reply via email to