aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-02-21 17:04:49 +0000
committerAndrew White <andrew.white@unboxed.co>2017-02-21 17:04:49 +0000
commitde24b8cb9c38a02b521d762d4b8eef11f6a78978 (patch)
treefc8f90f27a6d2d74a83649d2e6f297f744171288 /activerecord/test
parentd7c1e62c2cd2969b991bc4a1150b02b27f6d6e3f (diff)
downloadrails-de24b8cb9c38a02b521d762d4b8eef11f6a78978.tar.gz
rails-de24b8cb9c38a02b521d762d4b8eef11f6a78978.tar.bz2
rails-de24b8cb9c38a02b521d762d4b8eef11f6a78978.zip
Fix schema leakage from dirty_test.rb
The column information for the testings table was being cached so clear the cache in the test teardown.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/dirty_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb
index c0d6ddcea7..a43c06cd6e 100644
--- a/activerecord/test/cases/dirty_test.rb
+++ b/activerecord/test/cases/dirty_test.rb
@@ -577,6 +577,7 @@ class DirtyTest < ActiveRecord::TestCase
end
ensure
ActiveRecord::Base.connection.drop_table :testings rescue nil
+ ActiveRecord::Base.clear_cache!
end
end