Reputation: 1
Currently, we are using the stripe-ruby-mock gem in our application for testing Stripe APIs Integration, along with Stripe version '2015-04-07'. As we proceed with the Stripe upgrade and aim to utilize the latest Stripe version, we are encountering issues with the stripe-ruby-mock gem. According to its official documentation, it does not support later versions of the Stripe gem (i.e., versions greater than 11).
To resolve this issue, there needs to be compatibility between the latest Stripe version to our existing unit test cases. We are searching solutions for this challenge and would appreciate any suggestions from those who already faced similar problems.
Also, I have found one for Stripe testing i.e. https://github.com/stripe/stripe-mock. Did anyone used it before to write Unit tests?
Upvotes: -1
Views: 63
Reputation: 844
Stripe has a doc about automated testing. It suggests that you generate the mock API responses manually for various errors and mock the responses returned.
Upvotes: 0