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

Fix rescue_from with invalid response #2478

Merged
merged 5 commits into from
Jul 23, 2024

Conversation

ericproulx
Copy link
Contributor

@ericproulx ericproulx commented Jul 23, 2024

Wrap `default_rescue_handler` with `method`
@ericproulx ericproulx marked this pull request as ready for review July 23, 2024 11:18
@ericproulx ericproulx requested a review from dblock July 23, 2024 11:21
Regenerate Rubocop's todo
@ericproulx
Copy link
Contributor Author

I took the opportunity to fix the last RSpec/AnyInstance cop.

Copy link
Contributor

@manueljacob manueljacob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

@@ -2196,8 +2196,6 @@ def foo
it 'uses default_rescue_handler to handle invalid response from rescue_from' do
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a change

@dblock
Copy link
Member

dblock commented Jul 23, 2024

@manueljacob you good with this?

Copy link
Contributor

@manueljacob manueljacob left a 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!

spec/grape/api_spec.rb Outdated Show resolved Hide resolved
@numbata
Copy link
Contributor

numbata commented Jul 23, 2024

@ericproulx great job! 👍

@ericproulx ericproulx merged commit 838c75e into ruby-grape:master Jul 23, 2024
52 checks passed
@ericproulx ericproulx deleted the fix_2477 branch July 23, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants