aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/active_record/test_case.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/active_record/test_case.rb b/activerecord/test/active_record/test_case.rb
index 5398a14fc6..2f18eba157 100644
--- a/activerecord/test/active_record/test_case.rb
+++ b/activerecord/test/active_record/test_case.rb
@@ -9,6 +9,10 @@ module ActiveRecord
cleanup_identity_map
end
+ def teardown
+ ActiveRecord::SQLCounter.log.clear
+ end
+
def cleanup_identity_map
ActiveRecord::IdentityMap.clear
end