WebMock v3.17.0 Release Notes
-
Minimum required Ruby version is 2.3
Thanks to Go Sueyoshi
When using Net::HTTP, stubbed socket StubSocket#close and StubSocket#closed? behave more like the real sockets.
Thanks to Ray Zane
Added
peeraddr
,ssl_version
andcipher
methods to stubbed sockets used by Net::HTTP.Thanks to Ray Zane
Added support for matching top-level array in JSON request body.
E.g.
stub_request(:post, 'www.example.com').with(body: [{a: 1}])
Thanks to Cedric Sohrauer