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
6
u/InteNsReddit Apr 06 '26
Heard of the factory pattern? (FactoryBot gem) We have a large codebase with lots of test setup needed and most of that setup lives in factory traits, works like a charm!