docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.10.2 vs docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.10.3
- old
+ new
@@ -960,10 +960,11 @@
| 0.10
| -
|===
This cop enforces that test method names start with `test_` prefix.
+It aims to prevent tests that aren't executed by forgetting to start test method name with `test_`.
=== Examples
[source,ruby]
----
@@ -976,9 +977,15 @@
# good
class FooTest < Minitest::Test
def test_does_something
assert_equal 42, do_something
+ end
+end
+
+# good
+class FooTest < Minitest::Test
+ def helper_method(argument)
end
end
----
== Minitest/UnspecifiedException