1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

lazy-initialize already loaded fixtures map

This commit is contained in:
Jeremy Kemper 2008-11-08 22:49:00 -05:00
parent d87d3f76d5
commit 1df0a07f06

View file

@ -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