aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2013-12-24 17:28:40 -0500
committerschneems <richard.schneeman@gmail.com>2013-12-24 17:28:40 -0500
commit8e2c0803f5e114f74ce0e8acc44ae43da97175e3 (patch)
tree61620535f5664b493a02220bff50cb089626114a /activerecord/test/cases/adapters/mysql
parentf89c5f46b57fdb817d44e33f8e43f7417bd8792f (diff)
downloadrails-8e2c0803f5e114f74ce0e8acc44ae43da97175e3.tar.gz
rails-8e2c0803f5e114f74ce0e8acc44ae43da97175e3.tar.bz2
rails-8e2c0803f5e114f74ce0e8acc44ae43da97175e3.zip
Move mysql2 test for when adapter will be loaded
When run with only the Mysql adapter, we get this failure: https://travis-ci.org/rails/rails/jobs/15937907#L2416 Porting the test over to only run when mysql2 is loaded
Diffstat (limited to 'activerecord/test/cases/adapters/mysql')
-rw-r--r--activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
index a8b5cfb0cd..a85f3d4298 100644
--- a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
+++ b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
@@ -23,13 +23,6 @@ module ActiveRecord
end
end
- def test_bad_connection_mysql2
- assert_raise ActiveRecord::NoDatabaseError do
- connection = ActiveRecord::Base.mysql2_connection(adapter: "mysql2", database: "should_not_exist-cinco-dog-db")
- connection.exec_query('drop table if exists ex')
- end
- end
-
def test_valid_column
column = @conn.columns('ex').find { |col| col.name == 'id' }
assert @conn.valid_type?(column.type)