When testing the handling of a callback, the post
should return the contents of the body.
I've tried setting it up using the required keyword arguments:
post '/api/v1/callbacks`, body: { foo: 'bar' }
I want the params to be { foo: 'bar' }
but they're being returned as { body: { foo: 'bar' } }
.
Is there a way I can use the keyword args while not adding the unwanted body
key to the params?