diff options
author | Dennis Taylor <dennis.taylor@clio.com> | 2017-07-07 11:28:17 -0700 |
---|---|---|
committer | Dennis Taylor <dennis.taylor@clio.com> | 2017-07-07 11:28:17 -0700 |
commit | 79c8fa7c643831d0f731937d1b7e082df2e82885 (patch) | |
tree | 4dae1f5a71dbe7eacc8bba797a52c5973bc5bf25 | |
parent | e45226dd899ebb39d4ae0fae1dda4a2a507eaddd (diff) | |
download | rails-79c8fa7c643831d0f731937d1b7e082df2e82885.tar.gz rails-79c8fa7c643831d0f731937d1b7e082df2e82885.tar.bz2 rails-79c8fa7c643831d0f731937d1b7e082df2e82885.zip |
Rename the StatementInvalid test method for clarity.
-rw-r--r-- | activerecord/test/cases/adapter_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb index 3827e87d35..5ec15aff06 100644 --- a/activerecord/test/cases/adapter_test.rb +++ b/activerecord/test/cases/adapter_test.rb @@ -224,7 +224,7 @@ module ActiveRecord ActiveSupport::Notifications.unsubscribe(subscriber) if subscriber end - def test_other_exceptions_are_translated_to_statement_invalid + def test_database_related_exceptions_are_translated_to_statement_invalid error = assert_raises(ActiveRecord::StatementInvalid) do @connection.execute("This is a syntax error") end |