aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorDylan Thacker-Smith <Dylan.Smith@shopify.com>2017-01-09 14:34:18 -0500
committerDylan Thacker-Smith <Dylan.Smith@shopify.com>2017-01-09 14:54:42 -0500
commita01a3fa608af19fff8e0491cd4e6ad18943c8010 (patch)
treebe3a34e2beafdd07ccb9affa3ad70b95da63e006 /activesupport/test/core_ext
parent3bc747bd8676dc940b531067e2861dcd4ac28efc (diff)
downloadrails-a01a3fa608af19fff8e0491cd4e6ad18943c8010.tar.gz
rails-a01a3fa608af19fff8e0491cd4e6ad18943c8010.tar.bz2
rails-a01a3fa608af19fff8e0491cd4e6ad18943c8010.zip
activerecord/test: Fix Mysql2ConnectionTest#test_execute_after_disconnect
Mysql2ConnectionTest#test_execute_after_disconnect was originally added to catch a NoMethodError occuring in execute when the Mysql2Adapter has a nil `@connection`. Pull request #26869 removed the error message check in that test because the error message changed in the mysql2 gem, which caused the test to fail. Now the test wouldn't catch the original bug since the NoMethodError would get turned into a ActiveRecord::StatementInvalid exception. Check the cause of the StatementInvalid exception to make sure it is of the correct type.
Diffstat (limited to 'activesupport/test/core_ext')
0 files changed, 0 insertions, 0 deletions