Fix wording

This commit is contained in:
Vitalii Elenhaupt 2023-02-07 22:22:49 +02:00
parent 61a45d4321
commit e7f4bb6ae3
No known key found for this signature in database
GPG Key ID: CD0BF17825928BC0
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ module Ameba::Rule::Lint
CRYSTAL
end
it "doesn't report if it shadows type definition" do
it "doesn't report if it shadows type declaration" do
expect_no_issues subject, <<-CRYSTAL
class FooBar
getter index : String

View File

@ -476,7 +476,7 @@ module Ameba::Rule::Lint
issue.message.should eq "Useless assignment to variable `foo`"
end
it "doesn't report if top level variable defined inside module and referenced" do
it "doesn't report if type declaration assigned inside module and referenced" do
s = Source.new %(
module A
foo : String? = "foo"
@ -492,7 +492,7 @@ module Ameba::Rule::Lint
subject.catch(s).should be_valid
end
it "doesn't report if top level variable assigned inside class and referenced" do
it "doesn't report if type declaration assigned inside class" do
s = Source.new %(
class A
foo : String? = "foo"