Skip to content

Commit

Permalink
Reorder spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Feb 14, 2025
1 parent 586da6a commit 50a4ce4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/ameba/rule/lint/unused_instance_variable_access_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ module Ameba::Rule::Lint
CRYSTAL
end

it "passes if @type is unused within a macro expression" do
expect_no_issues subject, <<-CRYSTAL
def foo
{% @type %}
:bar
end
CRYSTAL
end

it "passes if an instance variable is used as a target in multi-assignment" do
expect_no_issues subject, <<-CRYSTAL
class MyClass
Expand Down Expand Up @@ -51,6 +42,15 @@ module Ameba::Rule::Lint
CRYSTAL
end

it "passes if @type is unused within a macro expression" do
expect_no_issues subject, <<-CRYSTAL
def foo
{% @type %}
:bar
end
CRYSTAL
end

it "fails if instance variable is unused within a macro expression" do
expect_issue subject, <<-CRYSTAL
def foo
Expand Down

0 comments on commit 50a4ce4

Please sign in to comment.