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

Update examples for it_behave_like with lambda and arguments #1173

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Jun 29, 2024

The setting for Style/StabbyLambdaParentheses requires us to omit the parentheses, so remove them from the example as well.

The setting for `Style/StabbyLambdaParentheses` requires us to omit the
parentheses, so remove them from the example as well.
@herwinw
Copy link
Member Author

herwinw commented Jun 29, 2024

I noticed this one with https://github.com/ruby/spec/actions/runs/9723090041/job/26837806565?pr=1172, where I used the example of the documentation, and got told by Rubocop to write them without parens.

@andrykonchin
Copy link
Member

Yeah, makes sense. Thank you!

@andrykonchin andrykonchin merged commit 43af972 into ruby:master Jun 29, 2024
14 checks passed
@herwinw herwinw deleted the examples_it_behaves_like branch June 29, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants