From de24b8cb9c38a02b521d762d4b8eef11f6a78978 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 21 Feb 2017 17:04:49 +0000 Subject: 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. --- activerecord/test/cases/dirty_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test') 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 -- cgit v1.2.3