diff --git a/spec/ameba/rule/lint/useless_assign_spec.cr b/spec/ameba/rule/lint/useless_assign_spec.cr index 91c40076..25b15a22 100644 --- a/spec/ameba/rule/lint/useless_assign_spec.cr +++ b/spec/ameba/rule/lint/useless_assign_spec.cr @@ -261,15 +261,6 @@ module Ameba::Rule::Lint end end - it "does not report if global var" do - s = Source.new %( - def method - $1 = 3 - end - ) - subject.catch(s).should be_valid - end - it "does not report if assignment is referenced in a proc" do s = Source.new %( def method