Permalink
Browse files

Test setup method should clean up IM.

  • Loading branch information...
1 parent b9e869a commit 095c445819f686f464ed252e50ed7d2862430ad4 @miloops miloops committed Oct 20, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/lib/active_record/test_case.rb
@@ -5,6 +5,10 @@ module ActiveRecord
class TestCase < ActiveSupport::TestCase #:nodoc:
setup :cleanup_identity_map
+ def setup
+ cleanup_identity_map
+ end
+
def cleanup_identity_map
ActiveRecord::Base.identity_map.clear
end

0 comments on commit 095c445

Please sign in to comment.