Skip to content

Commit

Permalink
Fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
veelenga committed Feb 7, 2023
1 parent 61a45d4 commit e7f4bb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/ameba/rule/lint/shadowing_outer_local_var_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/ameba/rule/lint/useless_assign_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit e7f4bb6

Please sign in to comment.