reifyhealth / specmonstah

Specmonstah will eat the face off your test fixtures
MIT License
359 stars 18 forks source link

Option to not generate references #13

Closed khiemlam closed 6 years ago

khiemlam commented 7 years ago

There are cases where I do not want to generate reference ids for certain entities, especially if these reference ids are optional.

For example, if a publisher has an address and that address is optional reference id, I would like to generate a publisher and be able to define nil for the address. In this case, I would expect that an address entity would not be created. However, as it currently implemented in specmonstah, the publisher's address will be set to nil, but a dummy, dangling address would still be created.

flyingmachine commented 6 years ago

closing this as it's covered in specmonstah 2