diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 24aabf0359..a09f58fc23 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -832,7 +832,6 @@ module ActiveRecord self.use_instantiated_fixtures = true self.pre_loaded_fixtures = false - @@already_loaded_fixtures = {} self.fixture_class_names = {} end @@ -940,6 +939,7 @@ module ActiveRecord # Load fixtures for every test. else Fixtures.reset_cache + @@already_loaded_fixtures ||= {} @@already_loaded_fixtures[self.class] = nil load_fixtures end