Permalink
Browse files

Merge pull request #5271 from carlosantoniodasilva/ar-fix-build

Fix message assertions for quoting database name in "show tables" for mysql
  • Loading branch information...
2 parents f8f66a3 + 357f1c6 commit 393c2ddfdb3dcc28b435d75f3979d5af8997ec74 @josevalim josevalim committed Mar 4, 2012
@@ -52,7 +52,7 @@ def test_tables_quoting
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
@@ -42,7 +42,7 @@ def test_tables_quoting
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

0 comments on commit 393c2dd

Please sign in to comment.