docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.11.1 vs docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.12.0

- old
+ new

@@ -623,9 +623,41 @@ | Max | `3` | Integer |=== +== Minitest/NoAssertions + +|=== +| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged + +| Disabled +| Yes +| No +| 0.12 +| - +|=== + +This cop checks if test cases contain any assertion calls. + +=== Examples + +[source,ruby] +---- +# bad +class FooTest < Minitest::Test + def test_the_truth + end +end + +# good +class FooTest < Minitest::Test + def test_the_truth + assert true + end +end +---- + == Minitest/RefuteEmpty |=== | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged