Flowdock
method

assert_queries

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::TestCase
assert_queries(num = 1) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

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
Register or log in to add new notes.