Using client stubs for easy and reliable integration tests | Fabio Perrella’s Blog

07-Jan-2021 1608
A while ago, I used AWS Ruby SDK to create a method to download files from S3, and I was introduced to Aws::ClientStubs, which is amazing, and it opened up my mind on how to test external APIs with a more integrated approach!Before discovering Aws::ClientStubs, I wondered how to test this new code, maybe I could use the gem VCR.For those of you who haven’t read my previous post, the most popular one is related to VCR, which would be my default way to test it.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle