RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Mocking Third Party API’s

Link: https://blog.joshsoftware.com/2021/03/25/mocking-third-party-apis/

Everyone uses third party APIs in their project. These are the external services which allows you to access third party functionalities within the project without rebuilding them.

While writing test cases for any project it is very difficult to be sure that the test suites always run successfully as it is dependent on the third party API response. Hence, for handling such scenarios one has to mock third party APIs to be sure that our test cases does not hit any actual third party API service and that it runs in isolation.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in