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
|
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)
|
||||||
|
|
Loading…
Reference in a new issue