Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Flush IdentityMap when running tests.

  • Loading branch information...
commit 87aa9133c43668ab79e6fb31a872ea309e3811e2 1 parent c036caf
@miloops miloops authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/lib/rails/test_help.rb
View
4 railties/lib/rails/test_help.rb
@@ -19,6 +19,10 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.