Skip to content

Add CreateStrategyForRepositoryPattern to FactoryBot; confer...

Jim Coble requested to merge repository-strategy-for-factorybot-create into develop

Add CreateStrategyForRepositoryPattern to FactoryBot; confer https://github.com/thoughtbot/factory_bot/issues/565 .

To return the resource peristed by a FactoryBot factory to_create method, use Factory.create_for_repository instead of FactoryBot.create. See the FactoryBot issue noted above for more details on why this is needed and the work-around code included in this commit.

Merge request reports