Repository navigation
Update dependency webmock to "~> 3.41.0" - #111
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/webmock-3.x
branch
2 times, most recently
from
November 22, 2026 02:56
2e8f0a3 to
32cc499
Compare
renovate
Bot
force-pushed
the
renovate/webmock-3.x
branch
2 times, most recently
from
November 24, 2026 01:13
cd7057f to
29e2ddd
Compare
renovate
Bot
force-pushed
the
renovate/webmock-3.x
branch
from
November 24, 2026 23:14
29e2ddd to
34306b2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
"~> 3.35.0"→"~> 3.41.0"Release Notes
bblimke/webmock (webmock)
v3.41.0Compare Source
WebMock now parses JSON request bodies with Ruby's
JSON.parse, instead of its old parser, which converted JSON to YAML and failed on or misread some valid JSON. Every body pattern that matched on 3.40.0 still matches. If one matches only as the old parser reads the body, WebMock prints a deprecation warning, because 4.0 drops the old parser and the pattern won't match there.Match JSON request bodies with an escaped backslash in a string (#432)
Previously, a hash body pattern didn't match a JSON body with an escaped backslash inside a string, such as JSON inside JSON, because the old parser failed on it. For example,
with(body: {data: '{"url":"/p?a=1\u0026b=2"}'})didn't match the body{"data":"{\"url\":\"/p?a=1\\u0026b=2\"}"}. It now matches.Strings that the old parser changed now match too, for example
"a\u000ab", which it read as"a b".Match numbers with an exponent in JSON request bodies
Previously, a number such as
1e2or1e+20in a JSON body was read as a String, sowith(body: {amount: 1e20})didn't match the body{"amount":1e+20}, whichto_jsongenerates for that hash with recent json versions, such as the one in Ruby 4.0. It now matches.Deprecate body patterns that match a JSON request body only as the old parser reads it
The old parser read some bodies that aren't valid JSON, and some values differently from
JSON.parse. For example,with(body: {a: 1})matches the body{a: 1}, andwith(body: {amount: "1e+20"})matches the body{"amount":1e+20}, because the old parser read that number as a String. Such a pattern still matches, and WebMock prints a warning once for each pattern:To fix it, send valid JSON, for example
{a: 1}.to_json, and write the pattern for whatJSON.parsereturns, such as{amount: 1e20}.Don't raise Psych errors for JSON request bodies such as one with an unquoted date
Previously, with Psych 4 or later (the default since Ruby 3.1), a JSON body such as
{"a": 2020-01-01}, which isn't valid JSON, raisedPsych::DisallowedClasswhen a stub had a hash body pattern, instead of WebMock's error for an unregistered request. It now doesn't match the pattern.Name a future major version in the deprecation warning for statuses such as
:okThe deprecation warning for a status such as
:ok, added in 3.38.0, said that WebMock 4.0 would raiseArgumentErrorfor it. 4.0 changes how JSON request bodies are read and doesn't change statuses yet, so the warning now names a future major version.v3.40.0Compare Source
Add support for
Curl::Multi(#535)Previously, WebMock didn't see requests sent with
Curl::Multi. A handle added withmulti.addand sent withmulti.performwent to the real server, even when a stub matched it or real connections were disabled, and WebMock didn't record it.Now a handle that matches a stub gets the stubbed response during
multi.perform, and one that is neither stubbed nor allowed raisesWebMock::NetConnectNotAllowedErrorfrommulti.add. Allowed requests still run together in curb's own multi loop. WebMock records both, andWebMock.after_requestcallbacks get both.If your tests send
Curl::Multirequests to real servers, stub them or allow their hosts, for example withWebMock.disable_net_connect!(allow: "api.example.com"). VCR, hooked into WebMock, now records and replays these requests too, and raisesVCR::Errors::UnhandledHTTPRequestErrorfor one that a cassette doesn't have, so record such cassettes again.Thanks to Todd Fisher
Drop curb callbacks on
Curl::Easy#resetfor stubbed requests, as curb doesPreviously, a callback such as
on_complete, set beforereset, still ran for a stubbed request made after it. Curb drops every callback onreset, so a real request didn't run it. If your tests rely on such a callback, set it again afterreset.v3.39.0Compare Source
Fix tracing libraries that wrap HTTPClient failing on stubbed requests (#1010)
Previously, for a stubbed request, WebMock's version of HTTPClient's private
do_get_blockmethod returned aThread::Queueinstead of the response that HTTPClient's own version returns. Libraries that wrap the method to trace requests, such as Datadog's, read that result as the response.It now returns the response, as it already did for real requests.
Match and record Net::HTTP URL encoded forms set with
set_form(#959)Previously, WebMock saw no body for a request whose form was set with
request.set_form([["foo", "bar"]]), because Net::HTTP encodes such a form only when it sends the request. A stub such aswith(body: {"foo" => "bar"})didn't match, and callbacks and VCR recorded the request without its body.WebMock now records the body of a URL encoded form given as a hash or an array of pairs, as Net::HTTP encodes it, and leaves sending the request to Net::HTTP. A multipart form, or a form given as another enumerable, which may be read only once, is recorded without a body, as before. If VCR, hooked into WebMock, matches requests on their body, record cassettes that contain such requests again.
Fix async-websocket connections failing with WebMock enabled (#953)
Previously, connecting with
Async::WebSocket::ClientraisedNoMethodError: undefined method 'acquire' for nil, even to a host that allowed real connections. async-websocket takes a connection from the async-http client's pool, and WebMock's version of the client had no pool.The client now hands out its real connection pool when WebMock's settings allow real connections to the host, and raises
WebMock::NetConnectNotAllowedErrorotherwise. WebMock can't stub or record what a library sends over such a connection, and neither can VCR, so with VCR hooked into WebMock, allow the host withWebMock.disable_net_connect!(allow: ...).Match the Cookie header that Typhoeus sends for the
cookieoption (#813)Previously,
Typhoeus.get(url, cookie: "key=value")sentCookie: key=value, but WebMock recorded the request without it, so a stub withwith(headers: {"Cookie" => "key=value"})didn't match.WebMock now records the header, unless the request sets its own Cookie header, which is then the one sent, or uses libcurl's cookie engine with
cookiefile,cookiejarorcookielist, which adds its own cookies to it. If VCR, hooked into WebMock, matches requests on their headers, record cassettes that contain such requests again. VCR now records the cookie too, so filter it, for example withfilter_sensitive_data, if it is a secret.Fix VCR failing to replay Typhoeus requests when hooked into both Typhoeus and WebMock (#973)
Previously, with
hook_into :typhoeus, :webmock, VCR warned that "There appears to be a bug in WebMock's after_request hook", and replaying a Typhoeus request from a cassette raisedArgumentError. VCR's Typhoeus hook answered the request before WebMock saw it, and WebMock still passed the request toafter_requestcallbacks, asnil.WebMock now leaves out requests it didn't see. On older versions,
hook_into :webmockalone records and replays Typhoeus requests too.Run the instrumentation of the
httpgem 6 for stubbed requests (#881)Previously, with version 6 of the
httpgem (HTTP.rb), a stubbed request skipped the instrumentation feature, soHTTP.use(instrumentation: {instrumenter: ...})emitted norequest.httpevents for it. In every version, a stubbed timeout orHTTP::Erroremitted noerror.httpevent.Stubbed requests now emit the same instrumentation events as real ones. Other features that HTTP.rb 6 runs around a request, such as caching and digest auth, still don't run for stubbed requests.
Fix Net::HTTP uploads raising
ArgumentErrorfor body streams whosereadneeds a length (#644)Previously, a request with
body_streamset to an object withdef read(length, buffer = nil)raisedArgumentError: wrong number of arguments, even with real connections allowed, because WebMock calledreadwithout arguments. Net::HTTP itself always passes a length, so the upload worked without WebMock.WebMock now reads such a stream in chunks.
Fix failure messages raising
Encoding::CompatibilityErrorfor bodies in different encodings (#668)Previously, the message for an unstubbed request, or for a failed
assert_requested, could raiseEncoding::CompatibilityError: incompatible character encodings: BINARY (ASCII-8BIT) and UTF-8instead of showing the failure. This happened when the message listed a UTF-8 body with non ASCII characters, such as a stubwith(body: "café"), next to a binary one, such as an uploaded image.Such messages now show the failure, with bytes that aren't valid UTF-8 written as escapes, such as
\xFF.Show URI templates, regexps and query options as Ruby in the list of registered stubs (#938)
Previously, the registered stubs listed for an unstubbed request put every URI in quotes, so a template stub was shown as
stub_request(:get, ""http://localhost:9200/{index}/_search""), a regexp as a string, and a query given towithwas written inside the quotes.The list now shows
stub_request(:get, Addressable::Template.new("http://localhost:9200/{index}/_search")), a regexp as a regexp, and a query that isn't part of the URL aswith(query: ...). The suggested stub for the unmatched request is unchanged.Leave out of the body diff the values that a regexp in a stub's body pattern matches (#840)
Previously, when a request didn't match a stub such as
with(body: {"email" => /@/}, headers: {"X-Token" => "1"})because of its headers, the body diff in the message still listed["~", "email", "milo@carter.net", /@/], so the regexp looked like the cause.The diff now leaves out the values that such a regexp matches.
Leave the User-Agent header out of the suggested stub for an unmatched request (#596)
Previously, the stub that WebMock suggests, as in "You can stub this request with the following snippet", required the request's
User-Agent, such as'User-Agent'=>'Ruby'or one with the client's version. A stub pasted from it stopped matching when the client was upgraded or the tests ran on another platform.The suggestion now leaves
User-Agentout, so it matches whatever the client sends. The message still shows the request with all its headers.Fix loading a YAML or Marshal dump of an em-http-request client while WebMock is enabled (#729)
Previously,
YAML.unsafe_load(client.to_yaml)orMarshal.load(Marshal.dump(client))raisedArgumentError: undefined class/module EventMachine::HttpClient::CookieJar, because WebMock replacesEventMachine::HttpClientwith a subclass.Such a dump now loads. A dump made while WebMock is enabled names WebMock's subclass, so load it where WebMock is loaded.
Convert a status given as a string of digits, and deprecate statuses such as
:ok(#802)Previously,
to_return(status: "201")gave the code"2"in Net::HTTP, because WebMock kept the string and adapters used its first character as the code.to_return(status: :ok)gave the code"o", or0in some clients, without an error.A string of digits is now converted to a number. A status such as
:ok,"ok"or200.0now prints a deprecation warning, and WebMock 4.0 will raiseArgumentErrorfor it. Use a number such as200, orRack::Utils.status_code(:ok)in a Rack app. A code and reason pair such as[200, "OK"]works as before.Keep each cookie of a stubbed response with several
Set-Cookieheaders, in order (#470)Previously, a raw response such as
to_return(File.read("response.txt"))with twoSet-Cookielines gave clients one comma joinedSet-Cookievalue, which can't be split back, since a cookie such asa=1; Expires=Wed, 21 Oct 2026 07:28:00 GMTcontains a comma. A stub such asto_return(headers: {"Set-Cookie" => ["sid=old; Max-Age=0", "sid=new"]})gave the cookies sorted, so a client appliedsid=old; Max-Age=0last and deleted the cookie, and Curb got them on one header line.Each client now gets the cookies as it would from a server sending these lines: separately, in the given order, on lines of their own in Curb, and joined in
headers["Set-Cookie"]and listed inresponse[:cookies]in Excon. Other repeated response headers are unchanged.A test that expected the cookies of such a stub joined, or sorted, now gets them as a real server would send them. For a real response with several cookies,
after_requestcallbacks, and so VCR, now get them in the order the server sent them instead of sorted, and for Excon each cookie instead of the joined header, so recordings and snapshots of them can change.Point out when a request URL and a stub's URL differ in a slash at the end of the path (#864)
WebMock treats
http://example.com/usersandhttp://example.com/users/as different URLs, since servers can too. Previously, when a request missed a stub because of that slash, the message didn't say why.The registered stubs listed for an unstubbed request, and the message of a failed
assert_requestedorhave_been_made, now point out the slash. Matching is unchanged.v3.38.0Compare Source
Allow or disable real requests only within a block (#1110)
WebMock.allow_net_connect!andWebMock.disable_net_connect!now take a block, for exampleWebMock.disable_net_connect!(allow: "api.example.com") { ... }. The settings apply only while the block runs. When it ends, even with an exception, the settings from before the call come back.Previously, either method ignored a block. In
WebMock.allow_net_connect! { Net::HTTP.get(uri) }, the request never ran, and real requests stayed allowed until the settings changed again. Code in such a block now runs.The settings are global, so other threads see them while the block runs. Don't run such blocks in several threads at once, because they can restore each other's settings in the wrong order.
Thanks to Yegor Bugayenko for the suggestion
Record the form Content-Type of Typhoeus requests with a hash body (#463)
Previously,
Typhoeus.post(url, body: {page: 2})sentContent-Type: application/x-www-form-urlencoded, but WebMock recorded the request without it. A stub withwith(body: {page: 2})didn't match, and neither did a stub that required that header.WebMock now records the header whenever Typhoeus sends it for a hash body: for a POST, even with an empty hash, and for any other method except PUT and HEAD, unless the form is empty.
A request that sets its own Content-Type keeps it. Multipart forms, such as a hash with a file or a request with
multipart: true, still have no Content-Type recorded, except an empty POST, which Typhoeus sends URL encoded even then. Requests withnobody: truehave none either.Callbacks,
WebMock.executed_requestsand VCR see the header too, and the stub suggested for an unmatched request includes it and shows a form body as a hash. Update assertions that compare all the headers of such a request. If VCR, hooked into WebMock, matches requests on their headers, record the affected cassettes again.Keep a
withblock whenwithis called again with options onlyPreviously,
stub_request(:post, url).with { |request| request.body == "yes" }.with(headers: {"X-A" => "1"})dropped the block, so the stub also matched a request with that header and the body"no". A laterwithcall already kept the options it didn't give, such asbody:, and now keeps the block too. The same applies toa_request.A stub or request expectation that matched only because the block was dropped no longer matches. Calling
withagain with a block, or with an option given before, still replaces it.Match numbers and boolean values in query patterns (#371)
Previously,
with(query: hash_including(page: 2))never matched?page=2, because query values in a request are strings and WebMock compared them with the Integer2. A plain hash had the same problem when the stub's URI was a regexp, a template or a lambda, as instub_request(:get, /example/).with(query: {page: 2}). With a string URI, an array of numbers such as{tag: [2, 10]}didn't match?tag[]=2&tag[]=10.WebMock now compares numbers,
trueandfalsein query patterns as strings, including inside nestedhash_includingandhash_excludingmatchers.This also makes
hash_excludingwork with such values. Previously,with(query: hash_excluding(page: 2))matched?page=2. A test that passed only because of this will now fail.Fix nested
hash_includingandhash_excludingwith symbol keys in RSpec (#900)Previously, in RSpec,
with(body: {user: hash_including(role: "admin")})never matched the JSON body{"user":{"role":"admin"}}. WebMock converted the keys of the outer hash to strings, but not those of a matcher inside it, and the parsed body has string keys. For the same reason, a nestedhash_excludingwith symbol keys never excluded anything, sowith(body: {user: hash_excluding(role: "admin")})matched that body too.The same applied to query patterns:
with(query: hash_including(filter: hash_excluding(role: "admin")))matched?filter[role]=admin.Nested matchers now get string keys too, as do hashes inside RSpec's
array_includingandarray_excluding. A test that passed only because a nestedhash_excludingexcluded nothing will now fail.Fix
hash_includingandhash_excludingnested in a query hashPreviously,
stub_request(:get, "www.example.com").with(query: {filter: hash_including("role" => "admin")})never matched?filter[role]=admin&filter[active]=true, because WebMock wrote the matcher into the stub's URL as text. With a regexp, a template or a lambda URI, such a stub never matched in RSpec, wherehash_includingandhash_excludingare RSpec's own matchers.Such stubs now match with every kind of URI.
Ignore letter case in allowed host names (#819)
Previously,
WebMock.disable_net_connect!(allow: "Anachronic.local")blocked requests to that host, because WebMock compared the allowed name with the request's host, which it writes in lowercase. The same applied to a host with a port, such as"Anachronic.local:8080", and to host names given asnet_http_connect_on_start.Such requests are now allowed and reach the real server. Host names are not case sensitive, and allowed URLs have ignored the letter case of the host since 3.30.0.
Fix URI templates not matching encoded characters in query values (#468)
Previously,
stub_request(:get, Addressable::Template.new("https://example.com/test{?q}"))didn't matchhttps://example.com/test?q=env%3Aproduction, although the template itself matches that URL. The same happened with?q=env:production, and with other punctuation such as/,@or=, encoded or not.Both now match. As with string URIs, a stub can't tell such an encoded character from the character itself.
Fix stubs with a hash body pattern raising on binary request bodies (#333)
Previously, a stub such as
stub_request(:post, url).with(body: {"name" => "x"})raisedArgumentError: invalid byte sequence in UTF-8when the request body was binary data, such as an uploaded image. Since WebMock checks the newest stub first, this also broke requests that an older stub would have answered.Such a body now doesn't match the hash pattern, so WebMock moves on to the next stub, as it already did for a body that isn't valid JSON.
Fix unstubbed requests with some form bodies raising
ArgumentErrorinstead of WebMock's errorPreviously, when a request with a URL encoded body matched no stub, WebMock could raise
ArgumentErrorwhile it built the suggested stub for its error message. This happened when the body was binary data, or when it repeated a key, as ina=1&a=2, withquery_values_notationset to:flat.WebMock now raises its usual error, and the suggested stub shows such a body as a string.
Fix Net::HTTP
OPTIONS *requests raisingAddressable::URI::InvalidURIError(#982)Previously,
http.request(Net::HTTP::Options.new("*"))raisedInvalid port number, even with real connections allowed, because WebMock could not build a URI from the*request target.WebMock now records such a request with the path
/*, so stub it asstub_request(:options, "www.example.com/*"). Real requests still sendOPTIONS *. Stubs andassert_requestedcan't tell such a request from anOPTIONSrequest for the path/*.Apply a changed
query_values_notationto URLs that WebMock has already seenPreviously, after
WebMock::Config.instance.query_values_notation = :flat_array, a URL that WebMock had already seen kept the query it got with the earlier notation, so?a=1&a=2still became?a=2. Whether a stub matched depended on which tests ran first.WebMock now reads each request's URL with the current notation. A stub keeps the query as WebMock read it when the stub was declared, so set the notation before declaring stubs.
Match
with(query: "...")pairs in any order with:flat_arrayPreviously, with
WebMock::Config.instance.query_values_notation = :flat_array,with(query: "b=2&a=1")didn't match a request for?b=2&a=1, andwith(query: "a=2&a=1")didn't match?a=2&a=1. Only patterns with their pairs in sorted order matched.Such patterns now match their pairs in any order, as a query in the stub's URL already did. A stub can't tell
?a=1&a=2from?a=2&a=1.Fix URLs that repeat a query key without a value raising with
:flat_arrayPreviously, with
:flat_array, any request for a URL such as?a&a=2raisedArgumentError. It now matcheswith(query: "a&a=2"), but notwith(query: "a=&a=2"), since the key has no value rather than an empty one.v3.37.0Compare Source
Add
executed_requeststo inspect the requests made (#1069)WebMock.executed_requestsreturns every request made since the last reset, in order, including repeated ones. You can assert on each one's body or headers, for exampleJSON.parse(WebMock.executed_requests.last.body).Previously, this needed WebMock internals such as
WebMock::RequestRegistry.instance.requested_signatures.hash.keys, which list each distinct request only once.Thanks to John Gallagher for the idea, which we started pairing on at EuRuKo 2024 in Sarajevo.
Fix stub matching for consecutive Curb PUT requests on the same handle
After
curl.http_put("first"), WebMock could match a subsequentcurl.http_putagainst the previous body. It now matches the second request with an empty body.Run HTTPClient request filters once per attempt on real requests
Previously, WebMock could run a filter twice, so a filter that generated a request ID could send a different ID to the server than the one WebMock recorded.
Fix async HTTPClient requests hanging when an
after_requestcallback is registeredPreviously, with real connections allowed, WebMock read the response body for the callback from the same stream as your code, so reading part of a
get_asyncresponse before callingjoincould hang.Match file and stream uploads by their content
Previously, a body pattern such as
with(body: "abc")never matched a Curb, Patron or em-http-request request that uploaded a file or stream, because WebMock compared the pattern with the file object. Stubs now compare it with the uploaded bytes for Curb and Patron, andassert_requesteddoes so for all three.Blocks given to
stub_request(...).withstill receive the original file or stream.Count em-http-request requests blocked by
disable_net_connect!Previously, WebMock did not record them, so
assert_requesteddid not count them. They are now counted, as with other HTTP clients.v3.36.0Compare Source
Fix matching of indexed arrays nested inside arrays of hashes (#1144)
Previously, WebMock read indexed arrays nested inside an array of hashes, such as
a[][b][0][c]=1, as hashes with"0","1"keys. WebMock writes that form itself, sowith(query: {"a" => [{"b" => [{"c" => "1"}]}]})with a regexp URI did not match?a[][b][][c]=1, and a Typhoeus request with that hash as its body did not match a stub with the same hash.If a stub uses the old shape, such as
{"a" => [{"b" => {"0" => {"c" => "1"}}}]}, for example one copied from WebMock's suggested stub, use arrays instead.Thanks to Hamza Tarar
Fix matching of arrays of hashes that repeat a nested key
Previously, WebMock put a nested key repeated under
[]into the first hash of the array, soitems[][address][city]=X&items[][address][city]=Ywas read as one item with the cityY. A stub listing both items did not match, and a stub forXandYalso matched a request forZandY. Rails and Faraday encode arrays of nested hashes this way.Such keys now go into a new hash, as in Rack. If a stub lists such an array as one item, for example one copied from WebMock's suggested stub, list every item.
Queries that mix a value and nested keys under the same name, such as
a[][b]=1&a[][b][c]=2ora[c]=1&a[c][]=2, no longer raiseIndexErroror join the values into one string.Apply Net::HTTP
response_body_encodingto stubbed response bodies (#1138)Previously, stubbed Net::HTTP responses ignored
Net::HTTP#response_body_encoding=andNet::HTTPResponse#body_encoding=. A body stubbed as binary, for example from a raw response file, stayedASCII-8BITeven withhttp.response_body_encoding = trueand aContent-Typeoftext/plain; charset=utf-8.Stubbed bodies now get the encoding real responses get: with
true, the charset from theContent-Typeheader or an HTML<meta>tag, and otherwise the encoding the setting names. Without the setting, a body keeps the encoding it was stubbed with.Thanks to Yang Bai
Give each stubbed Net::HTTP response its own copy of the body
Previously, a stubbed Net::HTTP response returned the stubbed body string itself. A body stubbed with a frozen string, such as a literal in a file with
# frozen_string_literal: true, maderesponse.body.force_encoding("UTF-8")raiseFrozenError, which a real response never does. Changing the body in place, for example withresponse.body << "!", changed it for later requests to the same stub too.Keep the size of async-http responses to HEAD requests (#1143)
async-http gives the size of a response to a HEAD request as
response.body.length, not as a header. Previously, a response stubbed withstub_request(:head, url).to_return(headers: {"Content-Length" => "42"})ignored theContent-Length: its body wasnilover HTTP/1 and had a length of 0 over HTTP/2. A real response lost its size, with anilbody, when aWebMock.after_requestcallback was registered, for example while VCR was recording, and the recorded response had noContent-Length.A stubbed response now takes its size from the stubbed
Content-Length, or from the stubbed body without one, as before. A real response keeps its size when a callback is registered, and the recorded response has it as itsContent-Length.Thanks to Andrew K. Fader
Keep the URI query of HTTPClient requests that pass a query argument (#1145)
Previously, WebMock dropped the query in the URI when an HTTPClient request also passed the query argument.
HTTPClient.new.get("http://example.com/?a=1", {"b" => "2"})requests/?a=1&b=2, but WebMock saw/?b=2, and with{}as the query argument it saw no query at all. A stub ora_requestexpectation could match a URL that was never requested.If a stub or expectation for such a request leaves out the query in the URI, add it, for example
stub_request(:get, "http://example.com/?a=1&b=2"). Record VCR cassettes with such requests again.Thanks to AmeenKhan12345
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.