Instance variable shortcuts to fixture data are not working?


#1

Hi,

I am following the Agile Web D. with Rails book and it looks
like either book is wrong or edge rails are broken.

I am trying to access fixture data through instance shortcuts. I.e.
customers.yml through @customers and it is not assigned.

Anybody knows why?

Sergei


#2

If you have the book, look at pages 148-149 to see what I am talking
about


#3

The way the fixtures in test changed sometime, for speed improvements.

They should now be accessed as customers(:id), I think.

Or there is an option you can change in the test_helper.rb


#4

Thank you Oliver, you are right.