diff options
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/test_case.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/test_case.rb b/activerecord/test/cases/test_case.rb index cbf6ea36bf..803a054d7e 100644 --- a/activerecord/test/cases/test_case.rb +++ b/activerecord/test/cases/test_case.rb @@ -26,9 +26,7 @@ module ActiveRecord end def assert_sql(*patterns_to_match) - SQLCounter.clear_log - yield - SQLCounter.log_all + capture_sql { yield } ensure failed_patterns = [] patterns_to_match.each do |pattern| |