diff options
-rw-r--r-- | activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/schema_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb index 073d0b0e73..5d6de90889 100644 --- a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb +++ b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb @@ -52,7 +52,7 @@ module ActiveRecord flunk rescue => e # assertion for *quoted* database properly - assert_match(/Access denied for user/, e.inspect) + assert_match(/Unknown database 'foo-bar': SHOW TABLES IN `foo-bar`/, e.inspect) end end diff --git a/activerecord/test/cases/adapters/mysql2/schema_test.rb b/activerecord/test/cases/adapters/mysql2/schema_test.rb index fd9996c937..10fdf88592 100644 --- a/activerecord/test/cases/adapters/mysql2/schema_test.rb +++ b/activerecord/test/cases/adapters/mysql2/schema_test.rb @@ -42,7 +42,7 @@ module ActiveRecord flunk rescue => e # assertion for *quoted* database properly - assert_match(/Access denied for user/, e.inspect) + assert_match(/Unknown database 'foo-bar': SHOW TABLES IN `foo-bar`/, e.inspect) end end |