Skip to content

Files

Latest commit

 

History

History
31 lines (21 loc) · 522 Bytes

Rails-RefuteMethods.md

File metadata and controls

31 lines (21 loc) · 522 Bytes

Pattern: Use of refute instead of assert_not methods

Issue: -

Description

Use assert_not methods instead of refute methods.

Examples

# bad
refute false
refute_empty [1, 2, 3]
refute_equal true, false

# good
assert_not false
assert_not_empty [1, 2, 3]
assert_not_equal true, false

Default configuration

Attribute Value
Include **/test/**/*

Further Reading