rubocop / rubocop-minitest

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

Fix an error for `Minitest/MultipleAssertions` when using for-style loops #317

Closed Earlopain closed 3 months ago

Earlopain commented 3 months ago

They produce an assign node, but the value is part of the parent for node.

I noticed there are some flaky tests in that file being skipped. I enabled them locally, and they pass with this change.


Before submitting the PR make sure the following are checked:

koic commented 3 months ago

Thanks!