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

Add support for RSpec/HaveHttpStatus when using response.code #1610

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

ydah
Copy link
Member

@ydah ydah commented Apr 3, 2023

Fixes #1609
This PR adds support for RSpec/HaveHttpStatus when using response.code.


Before submitting the PR make sure the following are checked:

  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@ydah ydah marked this pull request as ready for review April 3, 2023 09:15
@ydah ydah changed the title Add support for RSpec/HaveHttpStatus when using response.code. Add support for RSpec/HaveHttpStatus when using response.code Apr 3, 2023
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Thank you for the quick fix!

@pirj pirj requested review from bquorning and Darhazer April 3, 2023 20:56
@pirj pirj mentioned this pull request Apr 17, 2023
6 tasks
@ydah ydah force-pushed the fix/1609 branch 2 times, most recently from e365faf to f6d3684 Compare April 18, 2023 05:20
@ydah
Copy link
Member Author

ydah commented Apr 18, 2023

This PR is conflicted, so I rebased this PR.

@ydah ydah force-pushed the fix/1609 branch 2 times, most recently from f968c02 to e611453 Compare April 18, 2023 06:14
Fixes rubocop#1609
This PR adds support for `RSpec/HaveHttpStatus` when using `response.code`.
@bquorning bquorning merged commit cfa122e into rubocop:master Apr 18, 2023
23 checks passed
@ydah ydah deleted the fix/1609 branch April 18, 2023 06:20
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.

RSpec/HaveHttpStatus is missing response.code
3 participants