From e7f4bb6ae3b0bc7ef2da400d3747db6dc6a3affb Mon Sep 17 00:00:00 2001 From: Vitalii Elenhaupt Date: Tue, 7 Feb 2023 22:22:49 +0200 Subject: [PATCH] Fix wording --- spec/ameba/rule/lint/shadowing_outer_local_var_spec.cr | 2 +- spec/ameba/rule/lint/useless_assign_spec.cr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ameba/rule/lint/shadowing_outer_local_var_spec.cr b/spec/ameba/rule/lint/shadowing_outer_local_var_spec.cr index 22027c0d..a321f08a 100644 --- a/spec/ameba/rule/lint/shadowing_outer_local_var_spec.cr +++ b/spec/ameba/rule/lint/shadowing_outer_local_var_spec.cr @@ -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 diff --git a/spec/ameba/rule/lint/useless_assign_spec.cr b/spec/ameba/rule/lint/useless_assign_spec.cr index aeddcb71..a556d680 100644 --- a/spec/ameba/rule/lint/useless_assign_spec.cr +++ b/spec/ameba/rule/lint/useless_assign_spec.cr @@ -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"