Class: RuboCop::Cop::Minitest::RefuteIncludes

Inherits:
Base
  • Object
show all
Extended by:
RuboCop::Cop::MinitestCopRule
Defined in:
lib/rubocop/cop/minitest/refute_includes.rb

Overview

Enforces the test to use ‘refute_includes` instead of using `refute(collection.include?(object))`.

Examples:

# bad
refute(collection.include?(object))
refute(collection.include?(object), 'message')

# good
refute_includes(collection, object)
refute_includes(collection, object, 'message')

Method Summary

Methods included from RuboCop::Cop::MinitestCopRule

define_rule