I know its somewhere in the code, and I'll find it, but it would be useful if the README file showed how to get to WebMock's list of all requests and responses that it usually only shows when a test fails.
Yes, I do have VCR, but I assume Webmock doesn't actually need it to get hold of that list.
Seems to be WebMock.RequestRegistry.instance.to_s ?
RequestRegistry is an internal part of the WebMock, not part of the API.
If you need to print these requests, feel free. WebMock.RequestRegistry.instance.to_s does that indeed.
Oh - okay - but it seemed useful!
I thought it would work, but it doesn't. Would you mind telling me whether it was in the same place on webmock 1.7.10?
Failure/Error: Unable to find matching line from backtrace
undefined method `RequestRegistry' for WebMock:Module
I'm using version 1.7.10 because logstash breaks on later versions.
WebMock::RequestRegistry not WebMock.RequestRegistry
Thank you Bartosz! (& thanks for your patience!)
No probs. Glad it works. Should you have any more questions, feel free to ask and I'll answer if time allows.