Open lasseebert opened 8 years ago
Webmock doesn't have support for Excon unix sockets. You can use use Excon built in stubbing.
Ok, thx.
Would it be within the scope of WebMock to have support for Excon unix sockets via Excon built in stubbing? If I find the time, I could have a look at implementing it.
@lasseebert unix:///ping
is a valid URI therefore I don't see anything reason for not supporting it in WebMock.
I'm using Excon to connect to a local unix socket. It seems that WebMock also handles these requests, but with som oddities:
It registers a request to
GET unix:///ping
as:get, http://unix/ping
I can certanly use the workaround of just matching that url instead of the correct one in my specs, but I was wondering if this is intended or a bug. Or am I just misunderstanding something? :)
Ref: