method
assert_queries
assert_queries(num = 1)
public
Hide source
# File activerecord/lib/active_record/test_case.rb, line 25 def assert_queries(num = 1) $query_count = 0 yield ensure assert_equal num, $query_count, "#{$query_count} instead of #{num} queries were executed." end