json_api_assert icon indicating copy to clipboard operation
json_api_assert copied to clipboard

assert_data for create actions

Open bcardarella opened this issue 9 years ago • 0 comments

When creating you likely do not know the returning id value. In this case we still want to user assert_data/2 however we need to have a different matching case.

We could disregard the id matcher if the returning has a single resource object.

bcardarella avatar Aug 19 '16 19:08 bcardarella