DEV Community

Discussion on: How to stop API calls in RSpec and Return your Own Data

Collapse
 
juliusdelta profile image
JD Gonzales • Edited

Good advice. On smaller projects I tend to do something similar but on my work production application we use the VCR gem which records one call to a yml (a cassette) and then every time the test runs it uses that yml in place of the api response.