Merge pull request #255 from straight-shoota/fix/unknown-token-error

Fix unexpected token compiler error match
This commit is contained in:
Vitalii Elenhaupt 2021-11-30 11:42:25 +02:00 committed by GitHub
commit c7f1f94cca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ module Ameba::Rule::Lint
issue.rule.should_not be_nil
issue.location.to_s.should eq "source.cr:1:11"
issue.message.should eq "unexpected token: end (expected ';' or newline)"
issue.message.should match /unexpected token: "?end"? \(expected ["'];["'] or newline\)/
end
it "has highest severity" do