Skip to content

Instantly share code, notes, and snippets.

@fadhlirahim
Created January 16, 2024 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fadhlirahim/ee57d9e37d5fa7c38f9052991002d709 to your computer and use it in GitHub Desktop.
Save fadhlirahim/ee57d9e37d5fa7c38f9052991002d709 to your computer and use it in GitHub Desktop.
Reading ruby gem vcr cassette binary
require 'yaml'
require 'oj'
path = 'spec/vcr_cassettes/cassette.yml'
loaded = YAML.load_file(path)
body_string = loaded['http_interactions'][0]['response']['body']['string']
Oj.load(body_string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment