How do you show mutltiple response examples? I want to show a successful response and an error response. But the scaffold seems to mix all the responses from my tests into one big hash.
Example:
Valid Response:
{ response: { id: 1234, name: John } }
Error Response:
{ error: invalid_resource, error_description: "The current resource was deemed invalid.", messages: { name: ["can't be blank"] } }
How do you show mutltiple response examples? I want to show a successful response and an error response. But the scaffold seems to mix all the responses from my tests into one big hash.
Example:
Valid Response:
{ response: { id: 1234, name: John } }
Error Response:
{ error: invalid_resource, error_description: "The current resource was deemed invalid.", messages: { name: ["can't be blank"] } }