Merge pull request #298 from crystal-ameba/Sija/fix-specs-on-crystal-nightly

Fix specs on Crystal nightly
This commit is contained in:
Vitalii Elenhaupt 2022-11-13 21:07:29 +02:00 committed by GitHub
commit 2811352cae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,15 +261,6 @@ module Ameba::Rule::Lint
end end
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 it "does not report if assignment is referenced in a proc" do
s = Source.new %( s = Source.new %(
def method def method