1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

assert_no_queries should allow to ignore some queries

This commit is contained in:
Neeraj Singh 2013-07-30 13:31:00 +05:30
parent b51786d26e
commit 9c9a5a67bc

View file

@ -45,8 +45,9 @@ module ActiveRecord
x x
end end
def assert_no_queries(&block) def assert_no_queries(options = {}, &block)
assert_queries(0, :ignore_none => true, &block) options.reverse_merge! ignore_none: true
assert_queries(0, options, &block)
end end
def assert_column(model, column_name, msg=nil) def assert_column(model, column_name, msg=nil)