From 63bafba72e13c740e8a135baf3a01b627b86aede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Mon, 29 Nov 2021 22:04:59 +0100 Subject: [PATCH] Fix unexpected token compiler error match --- spec/ameba/rule/lint/syntax_spec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ameba/rule/lint/syntax_spec.cr b/spec/ameba/rule/lint/syntax_spec.cr index f7402e76..c46e52f3 100644 --- a/spec/ameba/rule/lint/syntax_spec.cr +++ b/spec/ameba/rule/lint/syntax_spec.cr @@ -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