manual/cops_minitest.md in rubocop-minitest-0.5.1 vs manual/cops_minitest.md in rubocop-minitest-0.6.0
- old
+ new
@@ -116,10 +116,35 @@
### References
* [https://github.com/rubocop-hq/minitest-style-guide#assert-instance-of](https://github.com/rubocop-hq/minitest-style-guide#assert-instance-of)
+## Minitest/AssertMatch
+
+Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
+--- | --- | --- | --- | ---
+Enabled | Yes | Yes | 0.6 | -
+
+This cop enforces the test to use `assert_match`
+instead of using `assert(matcher.match(string))`.
+
+### Examples
+
+```ruby
+# bad
+assert(matcher.match(string))
+assert(matcher.match(string), 'the message')
+
+# good
+assert_match(regex, string)
+assert_match(matcher, string, 'the message')
+```
+
+### References
+
+* [https://github.com/rubocop-hq/minitest-style-guide#assert-match](https://github.com/rubocop-hq/minitest-style-guide#assert-match)
+
## Minitest/AssertNil
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---
Enabled | Yes | Yes | 0.1 | -
@@ -316,9 +341,34 @@
```
### References
* [https://github.com/rubocop-hq/minitest-style-guide#refute-instance-of](https://github.com/rubocop-hq/minitest-style-guide#refute-instance-of)
+
+## Minitest/RefuteMatch
+
+Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
+--- | --- | --- | --- | ---
+Enabled | Yes | Yes | 0.6 | -
+
+This cop enforces the test to use `refute_match`
+instead of using `refute(matcher.match(string))`.
+
+### Examples
+
+```ruby
+# bad
+refute(matcher.match(string))
+refute(matcher.match(string), 'the message')
+
+# good
+refute_match(matcher, string)
+refute_match(matcher, string, 'the message')
+```
+
+### References
+
+* [https://github.com/rubocop-hq/minitest-style-guide#refute-match](https://github.com/rubocop-hq/minitest-style-guide#refute-match)
## Minitest/RefuteNil
Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
--- | --- | --- | --- | ---