Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 423 Bytes

Minitest-RefutePathExists.md

File metadata and controls

24 lines (16 loc) · 423 Bytes

Pattern: Missing use of refute_path_exists

Issue: -

Description

Enforces the test to use refute_path_exists instead of using refute(File.exist?(path)).

Examples

# bad
refute(File.exist?(path))
refute(File.exist?(path), 'message')

# good
refute_path_exists(path)
refute_path_exists(path, 'message')

Further Reading