Sha256: 51549e925ce2a9241f9fc51e3debacee9c3707830c48954b131ac937c95fff18

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

require 'rspeckled/plugins/extensions/vcr/matchers/uri_without_trailing_id'

::VCR.configure do |config|
  config.register_request_matcher :uri_without_trailing_guid do |request, vcr_request|
    ::Rspeckled::Vcr::Matchers::UriWithoutTrailingId
      .new(%r(/[a-f0-9\-]{32,36}/?\z))
      .call(request, vcr_request)
  end

  config.register_request_matcher :uri_without_trailing_id do |request, vcr_request|
    ::Rspeckled::Vcr::Matchers::UriWithoutTrailingId
      .new(%r{/\d+/?\z})
      .call(request, vcr_request)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/extensions/vcr.rb
rspeckled-2.1.0 lib/rspeckled/plugins/extensions/vcr.rb