From 18316eaa8b12e58a43c591f0a653753f0c4e6444 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Mon, 4 Apr 2022 21:16:48 +0200 Subject: [PATCH] Use issue expectation helpers in `Lint::LiteralInInterpolation` rule spec --- spec/ameba/rule/lint/literal_in_interpolation_spec.cr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/ameba/rule/lint/literal_in_interpolation_spec.cr b/spec/ameba/rule/lint/literal_in_interpolation_spec.cr index 218d94d7..78487eec 100644 --- a/spec/ameba/rule/lint/literal_in_interpolation_spec.cr +++ b/spec/ameba/rule/lint/literal_in_interpolation_spec.cr @@ -5,15 +5,14 @@ module Ameba::Rule::Lint describe LiteralInInterpolation do it "passes with good interpolation examples" do - s = Source.new %q( + expect_no_issues subject, <<-CRYSTAL name = "Ary" "Hello, #{name}" "#{name}" "Name size: #{name.size}" - ) - subject.catch(s).should be_valid + CRYSTAL end it "fails if there is useless interpolation" do