I've just started using WebMock. Among other things, I like the way it lets me verify the body of a request using a block, rather than just a string or regex.
I do have one problem with it, though: the fact that it considers escaped and unescaped URIs to be equivalent. The API I'm interacting with only works if I issue requests that are escaped. E.g.,
will not work, while
will. (I'm using Faraday with the Net::HTTP adapter for the client.)
Since WebMock considers "http://example.net/studies/A Test/template" and "http://example.net/studies/A%20Test/template" to be the same request, I can't test that my client code is properly escaping its request URIs. Is there a way to change WebMock's behavior so it doesn't consider these URIs to be the same?
I've looked through the code and the docs and not seen anything, but I thought I'd ask in case anyone more experienced with the library has a suggestion.