-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use specific query parameters with custom cassettes #13
Comments
Thanks for the report. I'll be checking. |
Maybe having regex by default is not good approach. Specifying it as regex |
Sorry for the delayed response, i think that makes a lot of sense |
Thanks for the reply. I've pushed a related commit. I think this allows either String or Regexp, though the format is getting tricker.. |
I've pushed as v0.4.0, and I'm closing this item at the moment. If you get any further comment, please reopen or open another one. |
There seems to be an issue with the Regex pattern matching in the handler.ex's matching
in which URLs that contain query paramters aren't able to be used (params after the ? will break the match). Here's an example:
failure.json:
A work-around is to use regex in the JSON to ignore the query params, or to simply leave the query params off:
failure.json:
But, this can be problematic if you need to ensure the query params are set correctly. Adding a Regex.escape (see below) seems to resolve the issue for this case, but looks like it breaks other pattern matching in URLs within the JSON:
The text was updated successfully, but these errors were encountered: