class RuboCop::Cop::Minitest::AssertWithExpectedArgument
def on_send(node)
def on_send(node) assert_with_two_arguments?(node) do |_expected, message| return if message.str_type? || message.dstr_type? || MESSAGE_VARIABLES.include?(message.source) arguments = node.arguments.map(&:source).join(', ') add_offense(node, message: format(MSG, arguments: arguments)) end end