提交 55d9e494 编写于 作者: R Rafael Mendonça França

Merge pull request #19881 from sikachu/silence-mysql-errno-warning

Silence warning from MySQL::Error object in test
......@@ -21,7 +21,9 @@ def setup
@connection.execute "SELECT count(*) from products"
@connection.disconnect!
assert_raises(ActiveRecord::StatementInvalid) do
@connection.execute "SELECT count(*) from products"
silence_warnings do
@connection.execute "SELECT count(*) from products"
end
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册