-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsonMinion Should Read ResponseBody Regardless of Expectations #84
Comments
hi, reading the response content is a tricky operation. for example when you're using unless very special use cases (such as some auth flow), every interaction should happen within the |
also the same applies as for #83 - |
Thanks for the reply. Hm I'm not sure since the documentation says "Use JsonMinion" to get the response body. I understand the purpose of |
Gru was build to be reusable from the beginning so after calling the verification everything should reset to the default values. Ideally, one should only use I can see your issue with the content capturing. Let's keep the issue open. I will try to figure out something to be able to get the content more easily. |
Sure, let me know if I can help with anything. |
Does it make sense?
My use case is, I want to move all expectations out of Gru. Something like this (taken from the documentation):
The above code doesn't work since JsonMinion reads the response body only if there's an expectation set. (I add the minion manually!) To fix the issue I'm adding something like this as an expectation:
Which seems unnecessary. Is there any reason JsonMinion omits reading response body if there's no
responseContent
?Great work BTW!
The text was updated successfully, but these errors were encountered: