Saturday, October 24, 2015

FactoryGirl::DuplicateDefinitionError: Factory already registered: author

I was getting this error in the rails console, when I did:

> FactoryGirl.find_definitions

Fix:

FactoryGirl.factories.clear
FactoryGirl.find_definitions