This is what happened with my tests after using FactoryGirl

These were acrobatics I thought were needed to be done, so I won’t get crazy with fixtures growth (check out rands for some Company attributes ;)). Apparently Thoughtbot’s FactoryGirl is addressing that issue perfectly.

Whenever I can delete some code (or replace by sound module, or gem in this case) I consider this day to be a good day.

Ps. Old code could have been refactored without FactoryGirl, but for some reason it wasn’t ;)

Share Button

Leave a Reply

Your email address will not be published. Required fields are marked *