jeudi 29 octobre 2020

VCR gem - Can I store my response data in a separate JSON file?

Using the VCR gem, responses are saved as a large string inside the YAML cassette file. Like this:

 response:
    body:
      string: '{"data":{"salesforceObjects":{"records":[{"student":{"accountId" ...

However, is it possible to save this JSON in a separate file, which is properly formatted and easier to read?

Aucun commentaire:

Enregistrer un commentaire