Class: VCR::RequestMatcherRegistry
- Inherits:
-
Object
- Object
- VCR::RequestMatcherRegistry
- Defined in:
- lib/vcr/request_matcher_registry.rb
Overview
Keeps track of the different request matchers.
Constant Summary collapse
- DEFAULT_MATCHERS =
The default request matchers used for any cassette that does not specify request matchers.
[:method, :uri]
Instance Method Summary collapse
-
#uri_without_params(*ignores) ⇒ #call
(also: #uri_without_param)
Builds a dynamic request matcher that matches on a URI while ignoring the named query parameters.
Instance Method Details
#uri_without_params(*ignores) ⇒ #call Also known as: uri_without_param
Builds a dynamic request matcher that matches on a URI while ignoring the named query parameters. This is useful for dealing with non-deterministic URIs (i.e. that have a timestamp or request signature parameter).
91 92 93 |
# File 'lib/vcr/request_matcher_registry.rb', line 91 def uri_without_params(*ignores) uri_without_param_matchers[ignores] end |