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:
parent
b51786d26e
commit
9c9a5a67bc
1 changed files with 3 additions and 2 deletions
|
@ -45,8 +45,9 @@ module ActiveRecord
|
|||
x
|
||||
end
|
||||
|
||||
def assert_no_queries(&block)
|
||||
assert_queries(0, :ignore_none => true, &block)
|
||||
def assert_no_queries(options = {}, &block)
|
||||
options.reverse_merge! ignore_none: true
|
||||
assert_queries(0, options, &block)
|
||||
end
|
||||
|
||||
def assert_column(model, column_name, msg=nil)
|
||||
|
|
Loading…
Reference in a new issue