rubyforgood / habitat_humanity

MIT License
6 stars 13 forks source link

Use FactoryGirl.lint instead of individual specs #129

Open crawfoal opened 7 years ago

crawfoal commented 7 years ago

Factory Girl provides the lint method so that you can easily ensure all factories are valid.

I've seen this used in a before suite hook, but as they point out in the documentation, this might be the best approach. Other options are to make a rake task (like they suggest), to have one spec that lints all factories, or maybe you want to just keep things as they are. Just wanted to point out this method to you guys.