config/default.yml in rubocop-minitest-0.10.3 vs config/default.yml in rubocop-minitest-0.11.0
- old
+ new
@@ -13,11 +13,11 @@
Minitest/AssertEmptyLiteral:
Description: 'This cop enforces the test to use `assert_empty` instead of using `assert([], object)` or `assert({}, object)`.'
Enabled: true
SafeAutoCorrect: false
VersionAdded: '0.5'
- VersionChanged: '0.10'
+ VersionChanged: '0.11'
Minitest/AssertEqual:
Description: 'This cop enforces the test to use `assert_equal` instead of using `assert(expected == actual)`.'
StyleGuide: 'https://minitest.rubystyle.guide#assert-equal-arguments-order'
Enabled: true
@@ -52,11 +52,11 @@
Enabled: true
VersionAdded: '0.4'
Minitest/AssertKindOf:
Description: 'This cop enforces the test to use `assert_kind_of(Class, object)` over `assert(object.kind_of?(Class))`'
- StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#assert-kind-of'
+ StyleGuide: 'https://github.com/rubocop/minitest-style-guide#assert-kind-of'
Enabled: 'pending'
VersionAdded: '0.10'
Minitest/AssertNil:
Description: 'This cop enforces the test to use `assert_nil` instead of using `assert_equal(nil, something)`.'
@@ -82,20 +82,25 @@
Enabled: true
VersionAdded: '0.3'
Minitest/AssertSilent:
Description: "This cop enforces the test to use `assert_silent { ... }` instead of using `assert_output('', '') { ... }`."
- StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#assert-silent'
+ StyleGuide: 'https://github.com/rubocop/minitest-style-guide#assert-silent'
Enabled: 'pending'
VersionAdded: '0.10'
Minitest/AssertTruthy:
Description: 'This cop enforces the test to use `assert(actual)` instead of using `assert_equal(true, actual)`.'
StyleGuide: 'https://minitest.rubystyle.guide#assert-truthy'
Enabled: true
VersionAdded: '0.2'
+Minitest/AssertWithExpectedArgument:
+ Description: 'This cop tries to detect when a user accidentally used `assert` when they meant to use `assert_equal`.'
+ Enabled: pending
+ VersionAdded: '0.11'
+
Minitest/GlobalExpectations:
Description: 'This cop checks for deprecated global expectations.'
StyleGuide: 'https://minitest.rubystyle.guide#global-expectations'
Enabled: true
VersionAdded: '0.7'
@@ -154,10 +159,10 @@
Enabled: true
VersionAdded: '0.4'
Minitest/RefuteKindOf:
Description: 'This cop enforces the test to use `refute_kind_of(Class, object)` over `refute(object.kind_of?(Class))`.'
- StyleGuide: 'https://github.com/rubocop-hq/minitest-style-guide#refute-kind-of'
+ StyleGuide: 'https://github.com/rubocop/minitest-style-guide#refute-kind-of'
Enabled: 'pending'
VersionAdded: '0.10'
Minitest/RefuteNil:
Description: 'This cop enforces the test to use `refute_nil` instead of using `refute_equal(nil, something)`.'