How to get the labels of entries in a fixture

Hello,

I use in tests fixtures, you know these wonderful YAML files for
seeding the database. When you have a database table :items then there
is in the corresponding YAML file items.yml before each item its
label, so you can access the item by items(:label) in your tests.

How can I get all the labels (not the items) more elegantly than
parsing the YAML file?

Thanks in advance,

Armin

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