Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 464 Bytes

Minitest-RefuteIncludes.md

File metadata and controls

23 lines (15 loc) · 464 Bytes

Pattern: Missing use of refute_includes

Issue: -

Description

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')

Further Reading