The stub strategy is specific to ActiveRecord. It exists to create a stub of ActiveRecord model instances. Therefore, it should live in factory_bot_rails.
My hope is that by doing this we'll need to refactor some code and add some hooks. This could allow for better hooks for adding strategies, meaning people could make more of their own.
The
stub
strategy is specific to ActiveRecord. It exists to create a stub of ActiveRecord model instances. Therefore, it should live infactory_bot_rails
.My hope is that by doing this we'll need to refactor some code and add some hooks. This could allow for better hooks for adding strategies, meaning people could make more of their own.