You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've discovered an issue with mock: It doesn't work if there is more than 1 nesting level of arrays of hashes in the request query string.
I discovered the issue appears in the lib/webmock/util/uri.rb file, line 19,20. Actually, it's a bit deeper (lib/webmock/util/query_mapper.rb#267), but things begin here.
So here is what I'm talking about:
I've discovered an issue with mock: It doesn't work if there is more than 1 nesting level of arrays of hashes in the request query string.
I discovered the issue appears in the
lib/webmock/util/uri.rb
file, line19,20
. Actually, it's a bit deeper (lib/webmock/util/query_mapper.rb#267
), but things begin here.So here is what I'm talking about:
now the discount array has indexes inside while there is no index in the original query.
In real work it leads to some misleading things: the query performs without any indexes, but the mock has to contain the index just to be working.
What I suggest is to introduce two different notations instead of
subscript
– one with indexes and another without.The text was updated successfully, but these errors were encountered: