Fix nonexistent method name used in error message

This commit is contained in:
Sijawusz Pur Rahnama 2023-11-06 08:54:12 +01:00
parent 1b342e8257
commit bdbb79f1fa

View file

@ -109,7 +109,7 @@ module Ameba::Spec::ExpectIssue
code = lines.join('\n')
if code == annotated_code
raise "Use `report_no_issues` to assert that no issues are found"
raise "Use `expect_no_issues` to assert that no issues are found"
end
source, actual_annotations = actual_annotations(rules, code, path, lines)