exvcr v0.12.0 ExVCR.Mock

Provides macro to record HTTP request/response.

Link to this section 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 with default options.

Provides macro to trigger recording/replaying http interactions.

Link to this section Functions

Link to this function

mock_methods(recorder, adapter)

Mock methods pre-defined for the specified adapter.

Link to this function

normalize_fixture(fixture)

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

Link to this function

prepare_stub_record(options, adapter)

Prepare stub record based on specified option parameters.

Link to this macro

use_cassette(fixture, test)

(macro)

Provides macro to trigger recording/replaying http interactions with default options.

Link to this 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