method

teardown_fixtures

teardown_fixtures()
private

No documentation available.

# File activerecord/lib/active_record/test_fixtures.rb, line 145
      def teardown_fixtures
        # Rollback changes if a transaction is active.
        if run_in_transaction?
          teardown_transactional_fixtures
        else
          ActiveRecord::FixtureSet.reset_cache
          invalidate_already_loaded_fixtures
        end

        ActiveRecord::Base.connection_handler.clear_active_connections!(:all)
      end

1Note

Prevent transactional fixtures for a specific suite

subwindow ยท May 26, 2010

If you want to prevent a specific group of tests from being run inside a transaction, just define inside your test class the methods teardown_fixtures and setup_fixtures with empty bodies.