How to Test Ruby Code That Depends on External APIs

Uncategorized

How to Test Ruby Code That Depends on External APIs

URL: https://www.honeybadger.io/blog/ruby-external-api-test/
Type: article
Domain: honeybadger.io

Excerpt: Few things are more frustrating than slow, flaky test suites. You're ready to deploy, wait 20 minutes for CI to run, only to find that a test failure in code you've never touched is blocking you. You dig into the source and find the problem: an external API call. It works (slowly) most of the tim...