Skip to content

Files

Latest commit

 

History

History
24 lines (18 loc) · 317 Bytes

Minitest-NoAssertions.md

File metadata and controls

24 lines (18 loc) · 317 Bytes

Pattern: Test case with no assertion calls

Issue: -

Description

Checks if test cases contain any assertion calls.

Examples

# bad
class FooTest < Minitest::Test
  def test_the_truth
  end
end

# good
class FooTest < Minitest::Test
  def test_the_truth
    assert true
  end
end