method
assert_no_queries
assert_no_queries(&block)
public
Hide source
# File activerecord/lib/active_record/test_case.rb, line 52 def assert_no_queries(&block) prev_ignored_sql = ActiveRecord::SQLCounter.ignored_sql ActiveRecord::SQLCounter.ignored_sql = [] assert_queries(0, &block) ensure ActiveRecord::SQLCounter.ignored_sql = prev_ignored_sql end