Sha256: 34f9d330a4af5c534c28e88648f0e2f5746677bf1b98c7f90b49ea13d8336ec4
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
# Minitest ## Minitest/AssertNil Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged --- | --- | --- | --- | --- Enabled | Yes | Yes | 0.1 | - Check if your test uses `assert_nil` instead of `assert_equal(nil, something)`. ### Examples ```ruby # bad assert_equal(nil, actual) assert_equal(nil, actual, 'the message') # good assert_nil(actual) assert_nil(actual, 'the message') ``` ### References * [https://github.com/rubocop-hq/minitest-style-guide#assert-nil](https://github.com/rubocop-hq/minitest-style-guide#assert-nil)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-minitest-0.1.0 | manual/cops_minitest.md |