thoughtbot / json_matchers

Validate your JSON APIs
MIT License
384 stars 40 forks source link

Use "to_create" in schema factory #82

Closed composerinteralia closed 6 years ago

composerinteralia commented 6 years ago

Rather then skip create and then write the schema file in an after-create callback, it is a little simpler to override FactoryBot's to_create method.

@seanpdoyle

seanpdoyle commented 6 years ago

Merged as part of https://github.com/thoughtbot/json_matchers/commit/e5d607d7d3e3559192bb29b65d582a85b05344c9. Thanks!