Testing external API integration with VCR gem
05-Sep-2019 2213
Suppose your application connects to an external service via API and you have a wrapper for this API that handles and parses response. The VCR gem gives you ability to store parsed response in a special format (cassetes). VCR makes a real request to the API for the first test run and writes it's response to the cassete for next test runnings.
Testing external API integration with VCR gem #ruby #rubydeveloper #rubyonrails #Testing #external #integration #api #gem #integration #testing https://rubyonrails.ba/link/testing-external-api-integration-with-vcr-gem