Dry-effects + rom-factory?

Oftentimes, when building entities in rom-factory, I would like to have a shared entity for different factories.

This way, all of the corresponding factories can re-use the same entity:

with_associations(user: Factory[:user]) do
  Factory[:profile] # will use the above user automatically


1 Like

@ianks so, yes, because in rom 6.0 effects will be supported OOTB and I’ll be greatly improving rom-factory thanks to the new runtime system I’ve built. Stay tuned :slight_smile: