config/default.yml in rubocop-minitest-0.17.2 vs config/default.yml in rubocop-minitest-0.18.0
- old
+ new
@@ -79,10 +79,16 @@
Description: 'This cop enforces the test to use `assert_respond_to(object, :do_something)` over `assert(object.respond_to?(:do_something))`.'
StyleGuide: 'https://minitest.rubystyle.guide#assert-responds-to-method'
Enabled: true
VersionAdded: '0.3'
+Minitest/AssertPredicate:
+ Description: 'This cop enforces the test to use `assert_predicate` instead of using `assert(obj.a_predicate_method?)`.'
+ StyleGuide: 'https://minitest.rubystyle.guide/#assert-predicate'
+ Enabled: pending
+ VersionAdded: '0.18'
+
Minitest/AssertSilent:
Description: "This cop enforces the test to use `assert_silent { ... }` instead of using `assert_output('', '') { ... }`."
StyleGuide: 'https://github.com/rubocop/minitest-style-guide#assert-silent'
Enabled: 'pending'
VersionAdded: '0.10'
@@ -191,9 +197,15 @@
Minitest/RefutePathExists:
Description: 'This cop enforces the test to use `refute_path_exists` instead of using `refute(File.exist?(path))`.'
StyleGuide: 'https://minitest.rubystyle.guide/#refute-path-exists'
Enabled: 'pending'
VersionAdded: '0.10'
+
+Minitest/RefutePredicate:
+ Description: 'This cop enforces the test to use `refute_predicate` instead of using `refute(obj.a_predicate_method?)`.'
+ StyleGuide: 'https://minitest.rubystyle.guide/#refute-predicate'
+ Enabled: pending
+ VersionAdded: '0.18'
Minitest/RefuteRespondTo:
Description: 'This cop enforces the test to use `refute_respond_to(object, :do_something)` over `refute(object.respond_to?(:do_something))`.'
StyleGuide: 'https://minitest.rubystyle.guide#refute-respond-to'
Enabled: true