-
Notifications
You must be signed in to change notification settings - Fork 8
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
Patch 0.8.1 #241
Patch 0.8.1 #241
Conversation
Instead of using the advanced using_test_classes, we can just stub the constants. You could use let statements for some of these as well, but when you want to do slightly more, like wrapping the class in a module, stubbing constants is much easier. I think it's best to keep things consistent here, so I decided to make all test classes into stubbed constants. It's very easy to read as well. https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LeakyConstantDeclaration
1.39 was the newest codeclimate rubocop channel available, so I downgrades Rubocop to 1.39. No need to run a newer version than that right now...
"Users may let RuboCop know the oldest version of Ruby which your project supports with".
This test was not needed anymore since Fortnox has changed the behavior of the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing South Korea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The country code was changed and we didn't really need this test when the country gem was upgraded. We already have multiple tests with different country codes. This was the same change I did in the development
branch.
@@ -19,16 +19,16 @@ | |||
# When recording new VCR cassettes, code needs to be changed to a unique value | |||
include_examples '.save', | |||
:description, | |||
additional_attrs: { code: 'blarg5' } | |||
additional_attrs: { code: 'blarg7' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... Could we in future use reasonable strings for test data? Run a lorem word if you can't think of something appropriate 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, ye sure 😄
Cherry picks commits to add support for Ruby 3 to v0.8