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.
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.