diff options
author | kennyj <kennyj@gmail.com> | 2012-03-07 03:17:14 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-03-07 23:33:52 +0900 |
commit | 37802dd51ec1e1b29743be2a3d02106f930e04ba (patch) | |
tree | fdb07e61c5f72e34a3b0e06478146f6aff2aa3a2 /activerecord | |
parent | 7638004d7d23df668ec33a3c570b7865e0d06a06 (diff) | |
download | rails-37802dd51ec1e1b29743be2a3d02106f930e04ba.tar.gz rails-37802dd51ec1e1b29743be2a3d02106f930e04ba.tar.bz2 rails-37802dd51ec1e1b29743be2a3d02106f930e04ba.zip |
Change the string to use in test case.
Diffstat (limited to 'activerecord')
-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 5d6de90889..5aa4743e7b 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(/Unknown database 'foo-bar': SHOW TABLES IN `foo-bar`/, e.inspect) + assert_match(/database '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 10fdf88592..de4d9c2b33 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(/Unknown database 'foo-bar': SHOW TABLES IN `foo-bar`/, e.inspect) + assert_match(/database 'foo-bar'/, e.inspect) end end |