View Source ExVCR.Mock (exvcr v0.15.2)

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.

Link to this section Functions

Link to this function

mock_methods(recorder, adapter)

View Source

Mock methods pre-defined for the specified adapter.

Link to this function

normalize_fixture(fixture)

View Source

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

Link to this function

prepare_stub_record(options, adapter)

View Source

Prepare stub record based on specified option parameters.

Link to this function

prepare_stub_records(options, adapter)

View Source

Prepare stub records

Link to this macro

start_cassette(fixture, options)

View Source (macro)
Link to this macro

stop_cassette(recorder)

View Source (macro)
Link to this macro

use_cassette(fixture, test)

View Source (macro)
Link to this macro

use_cassette(fixture, options, test)

View Source (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