rubocop / rubocop-rspec

Code style checking for RSpec files.
https://docs.rubocop.org/rubocop-rspec
MIT License
805 stars 277 forks source link

Fix autocorrect error for RSpec/ExpectActual #1856

Closed bquorning closed 6 months ago

bquorning commented 6 months ago

When the expect value is not wrapped in parentheses, the result of autocorrecting would sometimes be invalid Ruby code.

Fixes #1834


Before submitting the PR make sure the following are checked: