提交 f13ec726 编写于 作者: G Guillermo Iguaran

Update mysql adapter error message when disconnected

上级 e9801ecf
......@@ -68,7 +68,7 @@ def test_execute_after_disconnect
error = assert_raise(ActiveRecord::StatementInvalid) do
@connection.execute("SELECT 1")
end
assert_match(/closed MySQL connection/, error.message)
assert_match(/MySQL client is not connected/, error.message)
end
def test_quote_after_disconnect
......@@ -76,7 +76,7 @@ def test_quote_after_disconnect
error = assert_raise(Mysql2::Error) do
@connection.quote("string")
end
assert_match(/closed MySQL connection/, error.message)
assert_match(/MySQL client is not connected/, error.message)
end
def test_active_after_disconnect
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册