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