Skip to content
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

Merged
merged 4 commits into from
Mar 3, 2021
Merged

Conversation

bettysteger
Copy link
Contributor

I fixed a few errors that i've got when running my project's test suites, e.g.

NoMethodError: undefined method detect for nil:NilClass

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.

@csalvato
Copy link
Collaborator

@lpsBetty are there any failing tests on your local?

@bettysteger
Copy link
Contributor Author

@csalvato no i fixed them all

@csalvato
Copy link
Collaborator

csalvato commented Mar 3, 2021

@lpsBetty Thanks for this work. Apologies for the delay, I was on vacation.

When I run specs locally, I get several failures:

Finished in 11.31 seconds (files took 0.8676 seconds to load)
1129 examples, 462 failures, 39 pending

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.

@bettysteger
Copy link
Contributor Author

@csalvato ruby version 2.6.2 as defined in .ruby-version and executing with bundle exec rspec

Can you tell me one of your failures? Did you run it within my repository lpsBetty/stripe-ruby-mock ?

@csalvato
Copy link
Collaborator

csalvato commented Mar 3, 2021

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.

@csalvato csalvato merged commit 11d1160 into stripe-ruby-mock:master Mar 3, 2021
@csalvato
Copy link
Collaborator

csalvato commented Mar 3, 2021

@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.

@csalvato
Copy link
Collaborator

csalvato commented Mar 3, 2021

The gem should now be updated and accessible with a bundle update 👍🏼

@bettysteger
Copy link
Contributor Author

@csalvato very cool, thank you! yes i can help you with CI, when i find time ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants