diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2017-06-07 12:21:55 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2017-06-07 12:31:33 +0000 |
commit | 5cd85941dcf02f8458d343ffdaaef83bd9bf654f (patch) | |
tree | b2d0b8f189336cdb6ad4c3e7133464b2e76c6d1e /activerecord | |
parent | b7d244f52add490da2fec993772089baed0dab98 (diff) | |
download | rails-5cd85941dcf02f8458d343ffdaaef83bd9bf654f.tar.gz rails-5cd85941dcf02f8458d343ffdaaef83bd9bf654f.tar.bz2 rails-5cd85941dcf02f8458d343ffdaaef83bd9bf654f.zip |
Add teardown to reset_connection at MysqlTypeLookupTest
to address `Mysql2BooleanTest#test_column_type_without_emulated_booleans`
failure
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb b/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb index 3657b8340d..736eb3e3a0 100644 --- a/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb +++ b/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb @@ -1,13 +1,20 @@ require "cases/helper" +require "support/connection_helper" if current_adapter?(:Mysql2Adapter) module ActiveRecord module ConnectionAdapters class MysqlTypeLookupTest < ActiveRecord::TestCase + include ConnectionHelper + setup do @connection = ActiveRecord::Base.connection end + def teardown + reset_connection + end + def test_boolean_types emulate_booleans(true) do assert_lookup_type :boolean, "tinyint(1)" |