Keep Factories Simple
Andy Swick
1 min read
If you need to remove things after creating a model using a factory, it's doing too much. Convert it to a helper method instead. Having afterCreating in a configure method that creates other models, usually is a smell and slows down tests considerably. Bare factories should be the most barebones version of a model.
You’re on the list!
Your first Enby·Mail is on its way. Keep an eye on your inbox for a welcome note.
More from the Log
The whole log-
-
Make
Finished puzzle
-
Moment
Playing Symphony Center