Fix unexpected token compiler error match

This commit is contained in:
Johannes Müller 2021-11-29 22:04:59 +01:00
parent 63a6c73dc0
commit 63bafba72e
No known key found for this signature in database
GPG key ID: F0F349637AC5087A

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