Pattern: Use of Minitest matcher
Issue: -
Check if using Minitest matchers.
# bad
assert_equal(a, b)
assert_equal a, b, "must be equal"
refute_equal(a, b)
# good
expect(a).to eq(b)
expect(a).to(eq(b), "must be equal")
expect(a).not_to eq(b)
Pattern: Use of Minitest matcher
Issue: -
Check if using Minitest matchers.
# bad
assert_equal(a, b)
assert_equal a, b, "must be equal"
refute_equal(a, b)
# good
expect(a).to eq(b)
expect(a).to(eq(b), "must be equal")
expect(a).not_to eq(b)