diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2016-09-13 19:33:42 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2016-09-13 19:38:34 +0000 |
commit | 7a65b463ab8d366db0cc49b9a49d37c59d4ce574 (patch) | |
tree | 2d2a758a21dfdc6918fae62ce549ce78365b9b87 /activerecord/test | |
parent | 88ff3f820aa88b7235b7554668f91a73532726af (diff) | |
download | rails-7a65b463ab8d366db0cc49b9a49d37c59d4ce574.tar.gz rails-7a65b463ab8d366db0cc49b9a49d37c59d4ce574.tar.bz2 rails-7a65b463ab8d366db0cc49b9a49d37c59d4ce574.zip |
Address `warning: ambiguous first argument; put parentheses or a space even after `/' operator`
Diffstat (limited to 'activerecord/test')
-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 e014229650..8d8955e5c9 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(/closed MySQL connection/, 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(/closed MySQL connection/, error.message) end def test_active_after_disconnect |