ExVCR.JSON (exvcr v0.17.1)

View Source

Provides a feature to store/load cassettes in json format.

Summary

Functions

Loads the JSON files based on the fixture name and options. For options, this method just refers to the :custom attribute is set or not.

Reads and parse the json file located at the specified file_name.

Save responses into the json file.

Functions

load(file_name, custom_mode, adapter)

Loads the JSON files based on the fixture name and options. For options, this method just refers to the :custom attribute is set or not.

read_json_file(file_name)

Reads and parse the json file located at the specified file_name.

save(file_name, recordings)

Save responses into the json file.