Skip to content

Files

Latest commit

 

History

History
22 lines (14 loc) · 402 Bytes

Minitest-AssertSilent.md

File metadata and controls

22 lines (14 loc) · 402 Bytes

Pattern: Missing use of assert_silent

Issue: -

Description

Enforces the test to use assert_silent { ... } instead of using assert_output('', '') { ... }.

Examples

# bad
assert_output('', '') { puts object.do_something }

# good
assert_silent { puts object.do_something }

Further Reading