Given a fixture contacts.yml which contains:
patrick: id: 1 name: patrick email: email@example.com
pre 1.0 solutions:
@contacts[“patrick”] #using hash @patrick #using variable
contacts(:patrick) #using accessor
@loaded_fixtures[“contacts”][“patrick”] #direct access (not recommended)
Edit the test/test_helper.rb and set
self.use_instantiated_fixtures = true
this way the fixture variables are created like they used to.
You can get more details from the man himself (Mike Clark’s Weblog).
I’ve been having the same problem, thanks for the tip it was driving me mad!