rspec_api_documentation
rspec_api_documentation copied to clipboard
Make HttpTestClient HTTP compatible
HttpTestClient operates via HTTP. So it must send and receive HTTP Headers not CGI Meta-Variables
Also, I bumped WebMock dependency, because it was too old and fail tests on modern environment
@oestrich maybe you can help with review this PR?
This works nicely for request headers. Unfortunately, this expects "Content-Type" as a response header, so it doesn't work with other case variations even though Faraday (or some servers) returns lowercase headers.
...or maybe that's not the issue after all. Hmm. It's not parsing JSON responses, at any rate.