diff --git a/spec/ameba/rule/lint/useless_assign_spec.cr b/spec/ameba/rule/lint/useless_assign_spec.cr index 69fe5142a..e8fe41d54 100644 --- a/spec/ameba/rule/lint/useless_assign_spec.cr +++ b/spec/ameba/rule/lint/useless_assign_spec.cr @@ -525,19 +525,6 @@ module Ameba::Rule::Lint puts v = 1 unless v = rand v CRYSTAL - - expect_no_issues subject, <<-CRYSTAL - hash = {"foo" => "bar"} - - def call(v) - end - - unless v = hash["foo"]? - call v = "default" - end - - v - CRYSTAL end it "reports if assignment is useless in the branch" do