New httpclient version does not support #body
After a request, Curl::Easy#content_type returns the value of the "Content-Type" header from the response. Previously, using Curl::Easy with Webmock resulted in that method always returning nil. This patch makes Webmock set that value correctly.
Previous to this commit, Curl::Easy#last_effective_url will always be nil. This adds support for both last_effective_url and Curl::Easy#follow_location, as the former doesn't do much good w/o the latter. Closes #88.
…anymore. #content seems to be available in both new and older versions.
Stubbed responses with a `Transer-Encoding: chunked` header were not working properly. WebMock's internal processing caused the stubbed body to be ignored.
…c/core` was already required but `rspec/expectations` not.
… request time.
…equest constant, instead of monkeypatching the original class.
…ind out what requests were made until given point.
…number of executions
…s the same in request registry.
…ave separate responsibilities
…to override them.
…h can be used to stub this request.
…endency on json gem.
…de rspec or test/unit
…sh, when json was not required.
…r than before each test.
…anymore, since they are disabled by default.
…commending including the it manually in README.