Flush IdentityMap when running tests.

This commit is contained in:
Emilio Tagua 2010-10-14 16:21:28 -03:00
parent c036caf501
commit 87aa9133c4
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ if defined?(ActiveRecord)
class ActiveSupport::TestCase
include ActiveRecord::TestFixtures
self.fixture_path = "#{Rails.root}/test/fixtures/"
setup do
ActiveRecord::IdentityMap.clear
end
end
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path