-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Address some Ruby warnings #1995
Conversation
nbeyer
commented
Feb 19, 2020
- Add warnings enablement to spec_helper.rb to see future warnings
- Use instance_variable_defined? to clean up not initialized warnings
- Add 'inherited' to NON_OVERRIDABLE list
- Add multi_xml to test dependencies in Gemfile to address spec failure
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.
This looks good, needs a rebase please.
* Add warnings enablement to spec_helper.rb to see future warnings * Use instance_variable_defined? to clean up not initialized warnings * Add 'inherited' to NON_OVERRIDABLE list * Add multi_xml to test dependencies in Gemfile to address spec failure
@dblock This PR has been rebased. |
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 multi_xml thing looks suspicious. Otherwise good to go.
Merged, thank you. |
Now that we run with |
I've not found anything great for failing tests based on unexpected warnings. It's possible to plug into Ruby's Warning module, but it would require some framework building, as it seems likely that warnings from dependencies are going to pop-up, which would be out of the control of this project. |
* Address some Ruby warnings * Add warnings enablement to spec_helper.rb to see future warnings * Use instance_variable_defined? to clean up not initialized warnings * Add 'inherited' to NON_OVERRIDABLE list * Add multi_xml to test dependencies in Gemfile to address spec failure * Add changelog entry * expand changelog entry * adjust changelog * remove unnecessary multi_xml