config/default.yml in rubocop-minitest-0.18.0 vs config/default.yml in rubocop-minitest-0.19.0

- old
+ new

@@ -26,21 +26,10 @@ Description: 'This cop enforces the test to use `assert_in_delta` instead of using `assert_equal` to compare floats.' StyleGuide: 'https://minitest.rubystyle.guide/#assert-in-delta' Enabled: 'pending' VersionAdded: '0.10' -Minitest/AssertionInLifecycleHook: - Description: 'This cop checks for usage of assertions in lifecycle hooks.' - Enabled: 'pending' - VersionAdded: '0.10' - -Minitest/AssertMatch: - Description: 'This cop enforces the test to use `assert_match` instead of using `assert(matcher.match(object))`.' - StyleGuide: 'https://minitest.rubystyle.guide#assert-match' - Enabled: true - VersionAdded: '0.6' - Minitest/AssertIncludes: Description: 'This cop enforces the test to use `assert_includes` instead of using `assert(collection.include?(object))`.' StyleGuide: 'https://minitest.rubystyle.guide#assert-includes' Enabled: true VersionAdded: '0.2' @@ -55,10 +44,16 @@ Description: 'This cop enforces the test to use `assert_kind_of(Class, object)` over `assert(object.kind_of?(Class))`' StyleGuide: 'https://github.com/rubocop/minitest-style-guide#assert-kind-of' Enabled: 'pending' VersionAdded: '0.10' +Minitest/AssertMatch: + Description: 'This cop enforces the test to use `assert_match` instead of using `assert(matcher.match(object))`.' + StyleGuide: 'https://minitest.rubystyle.guide#assert-match' + Enabled: true + VersionAdded: '0.6' + Minitest/AssertNil: Description: 'This cop enforces the test to use `assert_nil` instead of using `assert_equal(nil, something)` or `assert(something.nil?)`.' StyleGuide: 'https://minitest.rubystyle.guide#assert-nil' Enabled: true VersionAdded: '0.1' @@ -73,22 +68,22 @@ Description: 'This cop enforces the test to use `assert_path_exists` instead of using `assert(File.exist?(path))`.' StyleGuide: 'https://minitest.rubystyle.guide/#assert-path-exists' Enabled: 'pending' VersionAdded: '0.10' -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' - 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/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' + 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' @@ -103,10 +98,20 @@ Description: 'This cop tries to detect when a user accidentally used `assert` when they meant to use `assert_equal`.' Enabled: pending Safe: false VersionAdded: '0.11' +Minitest/AssertionInLifecycleHook: + Description: 'This cop checks for usage of assertions in lifecycle hooks.' + Enabled: 'pending' + VersionAdded: '0.10' + +Minitest/DuplicateTestRun: + Description: 'This cop detects duplicate test runs caused by one test class inheriting from another.' + Enabled: pending + VersionAdded: '0.19' + Minitest/GlobalExpectations: Description: 'This cop checks for deprecated global expectations.' StyleGuide: 'https://minitest.rubystyle.guide#global-expectations' Enabled: true EnforcedStyle: any @@ -168,16 +173,10 @@ Description: 'This cop enforces the test to use `refute_includes` instead of using `refute(collection.include?(object))`.' StyleGuide: 'https://minitest.rubystyle.guide#refute-includes' Enabled: true VersionAdded: '0.3' -Minitest/RefuteMatch: - Description: 'This cop enforces the test to use `refute_match` instead of using `refute(matcher.match(object))`.' - StyleGuide: 'https://minitest.rubystyle.guide#refute-match' - Enabled: true - VersionAdded: '0.6' - Minitest/RefuteInstanceOf: Description: 'This cop enforces the test to use `refute_instance_of(Class, object)` over `refute(object.instance_of?(Class))`.' StyleGuide: 'https://minitest.rubystyle.guide#refute-instance-of' Enabled: true VersionAdded: '0.4' @@ -185,9 +184,15 @@ 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/minitest-style-guide#refute-kind-of' Enabled: 'pending' VersionAdded: '0.10' + +Minitest/RefuteMatch: + Description: 'This cop enforces the test to use `refute_match` instead of using `refute(matcher.match(object))`.' + StyleGuide: 'https://minitest.rubystyle.guide#refute-match' + Enabled: true + VersionAdded: '0.6' Minitest/RefuteNil: Description: 'This cop enforces the test to use `refute_nil` instead of using `refute_equal(nil, something)` or `refute(something.nil?)`.' StyleGuide: 'https://minitest.rubystyle.guide#refute-nil' Enabled: true