clear the sql counter on teardown so the GC can do it's thing

This commit is contained in:
Aaron Patterson 2012-01-04 16:18:38 -08:00
parent 1b276d53fb
commit 39489d138f

@ -9,6 +9,10 @@ def setup
cleanup_identity_map
end
def teardown
ActiveRecord::SQLCounter.log.clear
end
def cleanup_identity_map
ActiveRecord::IdentityMap.clear
end