config/default.yml in rubocop-minitest-0.20.1 vs config/default.yml in rubocop-minitest-0.21.0
- old
+ new
@@ -74,9 +74,14 @@
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/AssertRaisesCompoundBody:
+ Description: 'This cop enforces the block body of `assert_raises { ... }` to be reduced to only the raising code.'
+ Enabled: pending
+ VersionAdded: '0.21'
+
Minitest/AssertRespondTo:
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'