-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing all tests and more #767
Conversation
@lpsBetty are there any failing tests on your local? |
@csalvato no i fixed them all |
@lpsBetty Thanks for this work. Apologies for the delay, I was on vacation. When I run specs locally, I get several failures:
We will need to set up some CI (maybe GitHub actions) to test various environments. Once we do that, we can have a red/green suite and development on this gem should be a lot faster. What command are you running to run the specs? Also, what Ruby version? If you have a fully passing suite, we can start there with support for the gem. |
@csalvato ruby version 2.6.2 as defined in Can you tell me one of your failures? Did you run it within my repository lpsBetty/stripe-ruby-mock ? |
All of the failures seem to be on the mock server. I believe it's likely related to me running Ruby 3.0. I will double check this within the next few days. |
@lpsBetty Thanks for helping me clear this up. It was definitely because of running ruby 3.0 on my local environment. It looks like the server doesn't support ruby 3.0 just yet, and there will need to be some changes to make it work. I don't see a reason to prioritize that, though, unless someone raises an issue on it. Ideally, we set up github actions/travis/circle to run tests on 2.6.2 and a few other ruby versions automatically. 🤔 Not sure if that's something you're willing to take on, but i can merge this in, in the meantime and we can plan for another release. I'll create another release candidate with these changes and push a new version of the gem. |
The gem should now be updated and accessible with a |
@csalvato very cool, thank you! yes i can help you with CI, when i find time ! :) |
I fixed a few errors that i've got when running my project's test suites, e.g.
And also that the currencies does not match, because it is setting the default currency to the mocked customer (which should not be set).
All tests that I've fixed ran successfully on my local machine.