RailsCasts Pro episodes are now free!

Learn more or hide this

Michel Pouleijn's Profile

GitHub User: mpouleijn

Site: www.cttinnovations.com

Comments by Michel Pouleijn

Avatar

I'm having a challenge with VCR and I hope someone can help me with that.

I have a planning API I wanted to connect to and i want to validate the data from the api with my models.

In my system an Employee has an association with with an address. To get a valid employee i need to do two requests to the API.
1. To get the employee
2. To get the address of the employee.

But VCR doesn't allow me to record 2 API calls in one function. Any idea how to handle this?