Created
July 23, 2017 13:55
-
-
Save Startouf/65e9fb49ca3f04a6d986f1eb13889c26 to your computer and use it in GitHub Desktop.
Refactor jsonapi-suite sideposting into shared examples for RSpec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some notes :
1 - I've been passing
author_id
instead of using relationships, but actually in my code I scoped to thecurrent_user
so I just added that there but could as well have removed it.2 - For clarity, when the
create_request
kicks in, the payload with comments look like