Using client stubs for easy and reliable integration tests | Fabio Perrella’s Blog
07-Jan-2021 1581
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.
Using client stubs for easy and reliable integration tests | Fabio Perrella’s Blog #ruby #rubydeveloper #rubyonrails #Using #client #stubs #reliable #integration #tests #Fabio #Perrella’s #blog #integration #tests https://rubyonrails.ba/link/using-client-stubs-for-easy-and-reliable-integration-tests-fabio-perrella-s-blog