-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Correct whitespace braces around hash parameters #1315
Correct whitespace braces around hash parameters #1315
Conversation
end | ||
|
||
it 'one hash parameter with braces and separators' do | ||
corrected = autocorrect_source(cop, ['where( ', | ||
' { x: 1 } )']) | ||
' { x: 1 } )']) |
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.
Why the extra space here?
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.
right, no good reason for that.
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.
Well actually, it tests that ALL whitespace between the { and the start of its contents is removed, not just ONE space.
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 think there should a separate example for this to make it more apparent that this behavior is being tested.
You should also update the changelog. |
Updated changelog and added tests. |
Apart from my changelog entry remark - looks good. Update the changelog and squash the commits into one. |
Changelog entry moved to 'bugs fixed' section and squashed commits into one. |
…aces-around-hash-parameters Correct whitespace braces around hash parameters
👍 |
No description provided.