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
assert_raises
# bad assert_raises(...) do some_other_code do_something end # good some_other_code assert_raises(...) do do_something end
It is a good practice to make assert_raises bodies as small as possible, so that:
So this cop will suggest that assert_raises body contains only 1 top level node and it should of send/csend type.
send/csend
@koic Wdyt on this?
The text was updated successfully, but these errors were encountered:
This looks good to me. I think this cop can accept blocks (block type) as follows.
block
# good assert_raises(...) do do_something do foo bar end end
Sorry, something went wrong.
Minitest/AssertRaisesCompoundBody
Successfully merging a pull request may close this issue.
It is a good practice to make
assert_raises
bodies as small as possible, so that:assert_raises
can raise the same kind of an exception, there won't be false positives and the right method is testedSo this cop will suggest that
assert_raises
body contains only 1 top level node and it should ofsend/csend
type.@koic Wdyt on this?
The text was updated successfully, but these errors were encountered: