reifyhealth / specmonstah

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

Spec gen function for opts #57

Closed flyingmachine closed 5 years ago

flyingmachine commented 5 years ago

Prior to this change, you could only pass in a map as spec-gen's opts. spec-gen would merge this map with the generated value, allowing you to overwrite whatever was generated by spec-gen. This change allows you to also pass in a function. The function will be applied to whatever was generated by spec-gen, letting you e.g. dissoc a key.

should wait until #51 lands to review and merge