We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minitest/AssertMatch
Currently, the style guide for Minitest/AssertMatch says:
# bad assert(pattern.match?(object)) # good assert_match(pattern, object)
However, the cop detects a different pattern:
assert(pattern.match(object))
Ideally, it should detect all of these variants:
assert(pattern.match(object)) assert(pattern.match?(object)) assert(object =~ pattern)
The text was updated successfully, but these errors were encountered:
AssertMatch
RefuteMatch
match?
=~
Successfully merging a pull request may close this issue.
Currently, the style guide for
Minitest/AssertMatch
says:However, the cop detects a different pattern:
Ideally, it should detect all of these variants:
The text was updated successfully, but these errors were encountered: