diff options
author | Matthew Draper <matthew@trebex.net> | 2017-06-03 16:28:54 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2017-06-03 16:28:54 +0930 |
commit | 50c4bd9ff60cb135b30a8bba2ba9b80f158bb0ef (patch) | |
tree | ea288fb7e9ca1366886430e53932ccf989fea2f3 /activerecord | |
parent | 88ae9bf174d583153dfd93cfe3b916dfcdd16413 (diff) | |
download | rails-50c4bd9ff60cb135b30a8bba2ba9b80f158bb0ef.tar.gz rails-50c4bd9ff60cb135b30a8bba2ba9b80f158bb0ef.tar.bz2 rails-50c4bd9ff60cb135b30a8bba2ba9b80f158bb0ef.zip |
Reset the fixture cache after (re)loading the schema
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |