-
-
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
Fix rescue_from with invalid response #2478
Conversation
Wrap `default_rescue_handler` with `method`
Regenerate Rubocop's todo
I took the opportunity to fix the last RSpec/AnyInstance cop. |
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.
Otherwise LGTM.
spec/grape/api_spec.rb
Outdated
@@ -2196,8 +2196,6 @@ def foo | |||
it 'uses default_rescue_handler to handle invalid response from rescue_from' do |
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.
I suggest to change the name of the example to reflect that it doesn’t anymore test the implementation detail that it uses default_rescue_handler
.
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.
I made a change
@manueljacob you good with this? |
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.
I have a minor suggestion, otherwise LGTM!
Co-authored-by: Manuel Jacob <me@manueljacob.de>
@ericproulx great job! 👍 |
Fix #2477
cc @manueljacob