Feature request: how about making verify_stubbed_calls
verify the parameters of stubbed requests?
#1291
Labels
verify_stubbed_calls
verify the parameters of stubbed requests?
#1291
verify_stubbed_calls
is a useful method to stub whether a request is exactly called within a production code.However, I found out it does not verify the parameters of a request though it does for the request path.
For example, I'm expecting this test to fail because the new parameter
foo
is added tosushi
, but the stubbed Faraday connection is expecting that the onlyabc
exists in its params. However, the current implementation seems to pass the test.I succinctly came up with an idea to check all parameter keys are identical to the request parameters like this, but it would cause the existing tests to fail because of such a strict stubbing.
What do you think? This idea might bring breaking changes but would be useful when it comes to verifying the parameters.
The text was updated successfully, but these errors were encountered: