From 50c4bd9ff60cb135b30a8bba2ba9b80f158bb0ef Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sat, 3 Jun 2017 16:28:54 +0930 Subject: Reset the fixture cache after (re)loading the schema --- activerecord/test/cases/helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/test/cases/helper.rb') diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 5a3b8e3fb5..8506a44d6a 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -141,6 +141,8 @@ def load_schema if File.exist?(adapter_specific_schema_file) load adapter_specific_schema_file end + + ActiveRecord::FixtureSet.reset_cache ensure $stdout = original_stdout end -- cgit v1.2.3