ExVCR.Mock (exvcr v0.17.1)

View Source

Provides macro to record HTTP request/response.

Summary

Functions

Mock methods pre-defined for the specified adapter.

Normalize fixture name for using as json file names, which removes whitespaces and align case.

Prepare stub record based on specified option parameters.

Provides macro to trigger recording/replaying http interactions.

Functions

mock_methods(recorder, adapter)

Mock methods pre-defined for the specified adapter.

normalize_fixture(fixture)

Normalize fixture name for using as json file names, which removes whitespaces and align case.

prepare_stub_record(options, adapter)

Prepare stub record based on specified option parameters.

prepare_stub_records(options, adapter)

Prepare stub records

start_cassette(fixture, options)

(macro)

stop_cassette(recorder)

(macro)

use_cassette(fixture, test)

(macro)

use_cassette(fixture, options, test)

(macro)

Provides macro to trigger recording/replaying http interactions.

Options

  • :match_requests_on A list of request properties to match on when finding a matching response. Valid values include :query, :headers, and :request_body