|
|
|
|
|
by mnutt
186 days ago
|
|
I have a large rails app that was plagued with slow specs using factory_bot. Associations in factories are especially dangerous given how easy it is to build up big dependency chains. The single largest speedup was noting that nearly every test was in the context of a user and org, and creating a default_user and default_org fixture. |
|
Then you just refer to the fixture in your factory definitions? Seems very reasonable.