Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 379 Bytes

Minitest-AssertEqual.md

File metadata and controls

21 lines (13 loc) · 379 Bytes

Pattern: Use of assert(expected == actual)

Issue: -

Description

Enforces the use of assert_equal(expected, actual) over assert(expected == actual).

Examples

# bad
assert("rubocop-minitest" == actual)

# good
assert_equal("rubocop-minitest", actual)

Further Reading