Sha256: 4d8576021e9b3884fc1547cba3d6c1efb3fc3f63b960ea44bbb9b059a29caa67
Contents?: true
Size: 278 Bytes
Versions: 21
Compression:
Stored size: 278 Bytes
Contents
module VCRHelper def load_vcr_hash(fixture, key) yaml = YAML.load_file(VCR.configuration.cassette_library_dir + "/#{fixture}.yml") response = VCR::HTTPInteraction.from_hash(yaml["http_interactions"][0]).response.decompress.body JSON.parse(response)[key] end end
Version data entries
21 entries across 21 versions & 1 rubygems