docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.10.3 vs docs/modules/ROOT/pages/cops_minitest.adoc in rubocop-minitest-0.11.0
- old
+ new
@@ -39,23 +39,23 @@
| Enabled
| Yes
| Yes (Unsafe)
| 0.5
-| 0.10
+| 0.11
|===
This cop enforces the test to use `assert_empty`
-instead of using `assert([], object)`.
+instead of using `assert_equal([], object)`.
=== Examples
[source,ruby]
----
# bad
-assert([], object)
-assert({}, object)
+assert_equal([], object)
+assert_equal({}, object)
# good
assert_empty(object)
----
@@ -213,11 +213,11 @@
assert_kind_of(Class, object, 'message')
----
=== References
-* https://github.com/rubocop-hq/minitest-style-guide#assert-kind-of
+* https://github.com/rubocop/minitest-style-guide#assert-kind-of
== Minitest/AssertMatch
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
@@ -405,11 +405,11 @@
assert_silent { puts object.do_something }
----
=== References
-* https://github.com/rubocop-hq/minitest-style-guide#assert-silent
+* https://github.com/rubocop/minitest-style-guide#assert-silent
== Minitest/AssertTruthy
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
@@ -439,10 +439,39 @@
=== References
* https://minitest.rubystyle.guide#assert-truthy
+== Minitest/AssertWithExpectedArgument
+
+|===
+| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
+
+| Pending
+| Yes
+| No
+| 0.11
+| -
+|===
+
+This cop tries to detect when a user accidentally used
+`assert` when they meant to use `assert_equal`.
+
+=== Examples
+
+[source,ruby]
+----
+# bad
+assert(3, my_list.length)
+assert(expected, actual)
+
+# good
+assert_equal(3, my_list.length)
+assert_equal(expected, actual)
+assert(foo, 'message')
+----
+
== Minitest/AssertionInLifecycleHook
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
@@ -815,10 +844,10 @@
refute_kind_of(Class, object, 'message')
----
=== References
-* https://github.com/rubocop-hq/minitest-style-guide#refute-kind-of
+* https://github.com/rubocop/minitest-style-guide#refute-kind-of
== Minitest/RefuteMatch
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged