manual/cops_minitest.md in rubocop-minitest-0.4.1 vs manual/cops_minitest.md in rubocop-minitest-0.5.0
- old
+ new
@@ -23,9 +23,29 @@
### References
* [https://github.com/rubocop-hq/minitest-style-guide#assert-empty](https://github.com/rubocop-hq/minitest-style-guide#assert-empty)
+## Minitest/AssertEmptyLiteral
+
+Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
+--- | --- | --- | --- | ---
+Enabled | Yes | No | 0.5 | -
+
+This cop enforces the test to use `assert_empty`
+instead of using `assert([], object)`.
+
+### Examples
+
+```ruby
+# bad
+assert([], object)
+assert({}, object)
+
+# good
+assert_empty(object)
+```
+
## Minitest/AssertEqual
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.4 | -