Class: RuboCop::Cop::Minitest::RefutePredicate
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Minitest::RefutePredicate
- Extended by:
- AutoCorrector
- Includes:
- ArgumentRangeHelper, PredicateAssertionHandleable
- Defined in:
- lib/rubocop/cop/minitest/refute_predicate.rb
Overview
Enforces the test to use ‘refute_predicate` instead of using `refute(obj.a_predicate_method?)`.
Constant Summary collapse
- MSG =
'Prefer using `refute_predicate(%<new_arguments>s)`.'
- RESTRICT_ON_SEND =
rubocop:disable InternalAffairs/UselessRestrictOnSend
%i[refute].freeze