Minitest/MultipleAssertions
unexpectedly counts the block node
#223
Labels
bug
Something isn't working
Minitest/MultipleAssertions
unexpectedly counts the block node
#223
As far as I see,
Minitest/MultipleAssertions
counts the block node as assertion method, with the fix for #210, so the cop issues a violation unexpectedly if code includes assertion methods that are called with block. I'm not sure how to solve this problem while considering #210, so I just opened an issue here.Expected behavior
Given the code below, I expect rubocop-minitest does not issue problems on
Minitest/MultipleAssertions
, which is configured as the default; it meansMax
is3
.This is the expected command output:
Actual behavior
Steps to reproduce the problem
I created a repository to reproduce this problem.
https://github.com/yykamei/rubocop-minitest-issue
RuboCop version
The text was updated successfully, but these errors were encountered: