URI Without Param(s)
:match_requests_on => [
:method,
VCR.request_matchers.uri_without_param(:timestamp)
]Background ()
---
http_interactions:
- request:
method: get
uri: http://example.com/search?q=foo×tamp=1316920490
body:
encoding: UTF-8
string: ""
headers: {}
response:
status:
code: 200
message: OK
headers:
Content-Length:
- "12"
body:
encoding: UTF-8
string: foo response
http_version: "1.1"
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
- request:
method: get
uri: http://example.com/search?q=bar×tamp=1296723437
body:
encoding: UTF-8
string: ""
headers: {}
response:
status:
code: 200
message: OK
headers:
Content-Length:
- "12"
body:
encoding: UTF-8
string: bar response
http_version: "1.1"
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
recorded_with: VCR 2.0.0Match the URI on all but the timestamp query parameter
Last updated