ruby / spec

The Ruby Spec Suite aka ruby/spec
MIT License
595 stars 388 forks source link

Update examples for it_behave_like with lambda and arguments #1173

Closed herwinw closed 3 months ago

herwinw commented 3 months ago

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

herwinw commented 3 months ago

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 commented 3 months ago

Yeah, makes sense. Thank you!