Module: WsdlMapperTesting::Vcr

Extended by:
Vcr
Included in:
Vcr
Defined in:
lib/wsdl_mapper_testing/vcr.rb

Instance Method Summary collapse

Instance Method Details

#prepare(cassette_dir, &block) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/wsdl_mapper_testing/vcr.rb', line 8

def prepare(cassette_dir, &block)
  ::VCR.configure do |c|
    c.hook_into                :webmock
    c.cassette_library_dir     = cassette_dir
    c.default_cassette_options = {
      match_requests_on: [:uri, :body]
    }
    block[c] if block
  end
end