test uniqueness in your factories
If you're testing your factories, you may also want to check that they are generating unique attributes. To fail tests when I'm not validating uniqueness, I added a second build inside the loop (along with a way to skip any factories for models that there should never be two of):
Written by Alexander
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#