Instance variable shortcuts to fixture data are not working?


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?


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

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

Thank you Oliver, you are right.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs