I have fixture data in froglets.yml

In my functional test I specify fixtures :froglets

I can then access the individual fixture values by froglets(:froglet1) for
example.

I want to check the data in my index view so I want to iterate through the
froglets checking that the data is correctly formatted using something of
the form
froglets.each do |froglet| ...
but this does not work as the froglets object appears to be an empty array.

I realise I can do this by iterating the database records instead but this
does not seem the right way to do it.

I have googled without success.

Suggestions will be much appreciated.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to