Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Dec 28, 2024
1 parent 04f99c5 commit 995202e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/ameba/rule/typing/method_return_type_restriction_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Ameba::Rule::Typing
it "fails if a public method doesn't have a return type" do
expect_issue subject, <<-CRYSTAL
def hello
# ^^^^^ error: Method should have a return type restriction
# ^^^^^^^ error: Method should have a return type restriction
"hello world"
end
CRYSTAL
Expand Down Expand Up @@ -77,12 +77,12 @@ module Ameba::Rule::Typing
it "fails if a public or private method doesn't have a return type" do
expect_issue rule, <<-CRYSTAL
def hello
# ^^^^^ error: Method should have a return type restriction
# ^^^^^^^ error: Method should have a return type restriction
"hello world"
end
private def hello
# ^^^^^ error: Method should have a return type restriction
# ^^^^^^^^^ error: Method should have a return type restriction
"hello world"
end
CRYSTAL
Expand Down Expand Up @@ -112,12 +112,12 @@ module Ameba::Rule::Typing
it "fails if a public or protected method doesn't have a return type" do
expect_issue rule, <<-CRYSTAL
def hello
# ^^^^^ error: Method should have a return type restriction
# ^^^^^^^ error: Method should have a return type restriction
"hello world"
end
protected def hello
# ^^^^^ error: Method should have a return type restriction
# ^^^^^^^^^ error: Method should have a return type restriction
"hello world"
end
CRYSTAL
Expand Down

0 comments on commit 995202e

Please sign in to comment.