#mighty-adin_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1344068332067880980
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mighty-adin_best-practices, 1 hour ago, 3 messages
I have found mention of the VCR gem as a tool for recording/replaying flows against the Stripe API. My concern is that it would create a brittle mocking resource, and any randomized strings (eg uuids) would need special handling, and any change to our product would require re-recording thet "Cassette" all the time
Hi! We don't really have a lot for integration testing, and stripe-mock is meant more for unit testing.
Some folks do use test mode, but it's less than ideal, since you're effectively testing Stripe at that point rather than your application.
Yeah, the lack of a solution is apparent. But my assumption is that other companies have found ways to work around this limitation. We just want to align with industry standards
We're weighing the option of hitting the real API in Test Mode for a limited set of tests. But that obviously won't scale, and introduces an external dependency
you're effectively testing Stripe at that point rather than your application.
Also this
I suspect generally they'll use their own mock setup specific to their test cases - it is definitely suboptimal to include Stripe in your test suite if you can help it.
Ya, we either work or don't but that's not something your test suite needs to handle. ๐คช
My hope was that this Discord would be a place where I could get a crowd-sourced solution. But it seems like you're pretty aggressive about closing these threads, so I don't anticipate I'll get a chance to hear from other devs...
Like 'who out there is using VCR?' is not a question I can get answered it seems
Ya, it doesn't work like how IRC worked before - this is one thread per asker.
So even if they arrived in time before the thread was closed, I'm the only non-moderator with permssions to reply in this thread?
Yes.
Well, no ๐ but we will have the other person move on unless they're part of your organization and working on the same problem
Okay, so I guess I'll need to go to stackoverflow or something to hear from other RoR devs
I appreciate you jumping in, but I'm not really getting what I was hoping to
I'm sorry to hear that. StackOverflow might be a good next step, ya.