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 `Style/UselessAssertion` when passing a single argument to methods to accept two arguments #299

Closed Earlopain closed 10 months ago

Earlopain commented 10 months ago

This fixes an error for the followng code snippet:

assert_equal(1)

The code is broken and doesn't work but if using rubocop in lsp mode something that a user can type momentarily.


Before submitting the PR make sure the following are checked:

koic commented 10 months ago

Thanks!