aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapter_test.rb
diff options
context:
space:
mode:
authorDennis Taylor <dennis.taylor@clio.com>2017-07-07 11:28:47 -0700
committerDennis Taylor <dennis.taylor@clio.com>2017-07-07 11:28:47 -0700
commit8219e177633e3c3a77a50c2342b8fe6c4956914b (patch)
tree3604ff6e5548d9a69a3320d657f75ac2f1132ef4 /activerecord/test/cases/adapter_test.rb
parent79c8fa7c643831d0f731937d1b7e082df2e82885 (diff)
downloadrails-8219e177633e3c3a77a50c2342b8fe6c4956914b.tar.gz
rails-8219e177633e3c3a77a50c2342b8fe6c4956914b.tar.bz2
rails-8219e177633e3c3a77a50c2342b8fe6c4956914b.zip
Remove driver-specific hard-coding in the tests.
Diffstat (limited to 'activerecord/test/cases/adapter_test.rb')
-rw-r--r--activerecord/test/cases/adapter_test.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb
index 5ec15aff06..827bcba121 100644
--- a/activerecord/test/cases/adapter_test.rb
+++ b/activerecord/test/cases/adapter_test.rb
@@ -230,7 +230,7 @@ module ActiveRecord
end
assert_instance_of ActiveRecord::StatementInvalid, error
- assert_instance_of syntax_error_exception_class, error.cause
+ assert_kind_of Exception, error.cause
end
def test_select_all_always_return_activerecord_result
@@ -283,14 +283,6 @@ module ActiveRecord
assert_not_nil error.message
end
end
-
- private
-
- def syntax_error_exception_class
- return Mysql2::Error if defined?(Mysql2)
- return PG::SyntaxError if defined?(PG)
- return SQLite3::SQLException if defined?(SQLite3)
- end
end
class AdapterForeignKeyTest < ActiveRecord::TestCase