Skip to content

Files

Latest commit

 

History

History
27 lines (17 loc) · 405 Bytes

Rails-AssertNot.md

File metadata and controls

27 lines (17 loc) · 405 Bytes

Pattern: Use of assert ! instead of assert_not

Issue: -

Description

This rule enforces to use assert_not instead of assert !.

Examples

# bad
assert !x

# good
assert_not x

Default configuration

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

Further Reading