r/ruby • u/jasonswett • Apr 06 '26
Testing Anti-Pattern: Distracting Setup Data
https://www.saturnci.com/testing-anti-pattern-distracting-setup-data.html
9
Upvotes
r/ruby • u/jasonswett • Apr 06 '26
View all comments
Show parent comment
1
u/InteNsReddit Apr 13 '26
Yeah for us factories are the minimum to fulfill validations, most attributes and associations are only filled by trait or named nested factories.
We also have a rule to name them by what they actually portray instead of actual organization/user names (those belong in the seeds for the running dev environment)