提交 9c9a5a67 编写于 作者: N Neeraj Singh

assert_no_queries should allow to ignore some queries

上级 b51786d2
......@@ -45,8 +45,9 @@ def assert_queries(num = 1, options = {})
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册