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 an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0) #1816

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

ydah
Copy link
Member

@ydah ydah commented Feb 26, 2024

Fix: #1815


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).

…xpectations with line break before `.by(0)`

Fix: #1815
@ydah ydah requested a review from a team as a code owner February 26, 2024 07:41
@pirj pirj merged commit be3e48f into master Feb 26, 2024
23 of 24 checks passed
@pirj pirj deleted the fix1815 branch February 26, 2024 14:35
@pirj
Copy link
Member

pirj commented Feb 26, 2024

Thank you!

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/ChangeByZero's autocorrection causes syntax error if by(0) is split into separate lines
3 participants