aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-09-01 20:59:08 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-09-01 20:59:31 +0900
commita4ecc64959613a5be0fc933fd57beb43c5de27a6 (patch)
treeeb581f5e5526e903d49e92d529bae5dc2aca293a /activerecord
parent3bac1cb8b35df2e9bfa52c93e2a886926db4f6bc (diff)
downloadrails-a4ecc64959613a5be0fc933fd57beb43c5de27a6.tar.gz
rails-a4ecc64959613a5be0fc933fd57beb43c5de27a6.tar.bz2
rails-a4ecc64959613a5be0fc933fd57beb43c5de27a6.zip
Clear schema cache before each test
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/mysql/consistency_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/mysql/consistency_test.rb b/activerecord/test/cases/adapters/mysql/consistency_test.rb
index 083d533bb2..e972d6b330 100644
--- a/activerecord/test/cases/adapters/mysql/consistency_test.rb
+++ b/activerecord/test/cases/adapters/mysql/consistency_test.rb
@@ -12,6 +12,7 @@ class MysqlConsistencyTest < ActiveRecord::TestCase
ActiveRecord::ConnectionAdapters::MysqlAdapter.emulate_booleans = false
@connection = ActiveRecord::Base.connection
+ @connection.clear_cache!
@connection.create_table("mysql_consistency") do |t|
t.boolean "a_bool"
t.string "a_string"