diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2016-10-22 20:06:34 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2016-10-22 20:07:06 -0500 |
commit | f13ec72664fd13d33d617103ca964a7592295854 (patch) | |
tree | 0b508b0cbc1ec3c5f51819b402519b19b349d5c5 | |
parent | e9801ecfd909baf3c5b686013ff01dba9f9b081b (diff) | |
download | rails-f13ec72664fd13d33d617103ca964a7592295854.tar.gz rails-f13ec72664fd13d33d617103ca964a7592295854.tar.bz2 rails-f13ec72664fd13d33d617103ca964a7592295854.zip |
Update mysql adapter error message when disconnected
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/connection_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/connection_test.rb b/activerecord/test/cases/adapters/mysql2/connection_test.rb index 8d8955e5c9..b441ce3a34 100644 --- a/activerecord/test/cases/adapters/mysql2/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql2/connection_test.rb @@ -68,7 +68,7 @@ class Mysql2ConnectionTest < ActiveRecord::Mysql2TestCase 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 @@ class Mysql2ConnectionTest < ActiveRecord::Mysql2TestCase 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 |