Using Rails 3.2.13 and Test::Unit (actually implemented by MiniTest, if I understand right), I'm seeing fixture data remaining in the database after running the tests. I'm hoping there's a way to set it up so that the database is clean after the tests run.
This is my test_helper.rb file, mentioning transactional fixtures:
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
self.use_transactional_fixtures = true
fixtures :all
end
class ActionController::TestCase
include Devise::TestHelpers
end
I had hoped that use_transactional_fixtures would do the trick, but either my hopes were misplaced, or I'm doing it wrong. Can you get me pointed in the right direction? Or am I hoping for something that is not commonly done?