rubocop / rubocop-minitest

Code style checking for Minitest files.
https://docs.rubocop.org/rubocop-minitest
MIT License
144 stars 44 forks source link

[Fix #289] count asserts within blocks for assignments #291

Closed G-Rath closed 11 months ago

G-Rath commented 11 months ago

Follow up to #290 / #289 - I realised when re-reviewing my change that assertion_method? only checks the immediate expression of assignments, which makes sense for what it's meant to be doing - so we need to still handle checking the bodies of blocks for assignments.

I've not added a changelog for this since the original PR has not been released so I figured it would still be considered a single "fix", but let me know if you'd still like a second changelog entry anyway.


Before submitting the PR make sure the following are checked:

koic commented 11 months ago

Thanks!