Flush IdentityMap when running tests.
This commit is contained in:
parent
c036caf501
commit
87aa9133c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue