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:
parent
d87d3f76d5
commit
1df0a07f06
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue