WebMock 1.8.0 does not play nice with Curb < 0.7.16

When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you update Curb as well.\
WebMock will not complain about those requests not being stubbed.

One of the commits that made it into 1.8.0 actually breaks Curb versions below 0.7.16 while fixing it for that version (and above, hopefully).\
WebMock's hooks for Curl::Easy are still there, but they no longer work properly on older versions.

So, to upgrade WebMock properly, you need to change your Gemfile to also hold something like this for the curb dependencies:

gem webmock, '>= 1.8.0'
gem curb, '>= 0.7.16'

For me this happened when stubbing calls for Savon, which was using Curb in the background.

Arne Hartherz over 9 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more