I have a Rails 2.x application without tests. I can write tests manually, but is there a way to automatically create fixtures? It would be nice not to enter all this manually.
I can run the script / generate again for all models, but everything already exists, and if I understand the generators correctly, I still have to enter all the attributes.
I was thinking about starting the Rails console and for example ...
>> y VendorUser.all.rand
That would give me some YAML with all the attributes, but they would be out of order, and that is still quite a lot of time.
Can anyone suggest a more efficient option?
Ethan source
share