Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 426 Bytes

Minitest-RefuteMatch.md

File metadata and controls

24 lines (16 loc) · 426 Bytes

Pattern: Missing use of refute_match

Issue: -

Description

Enforces the test to use refute_match instead of using refute(matcher.match(string)).

Examples

# bad
refute(matcher.match(string))
refute(matcher.match(string), 'message')

# good
refute_match(matcher, string)
refute_match(matcher, string, 'message')

Further Reading