lib/rubocop/cop/mixin/predicate_assertion_handleable.rb in rubocop-minitest-0.21.1 vs lib/rubocop/cop/mixin/predicate_assertion_handleable.rb in rubocop-minitest-0.22.0
- old
+ new
@@ -2,9 +2,10 @@
module RuboCop
module Cop
module Minitest
# Common functionality for `Minitest/AssertPredicate` and `Minitest/RefutePredicate` cops.
+ # @api private
module PredicateAssertionHandleable
MSG = 'Prefer using `%<assertion_type>s_predicate(%<new_arguments>s)`.'
def on_send(node)
return unless (arguments = peel_redundant_parentheses_from(node.arguments))