mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Consistently use CRYSTAL
marker for heredocs with crystal code
This commit is contained in:
parent
2cb8c1381f
commit
071a8b7afb
2 changed files with 10 additions and 10 deletions
|
@ -2,7 +2,7 @@ require "../../../spec_helper"
|
|||
|
||||
module Ameba::Rule::Metrics
|
||||
subject = CyclomaticComplexity.new
|
||||
complex_method = <<-CODE
|
||||
complex_method = <<-CRYSTAL
|
||||
def hello(a, b, c)
|
||||
if a && b && c
|
||||
begin
|
||||
|
@ -15,7 +15,7 @@ module Ameba::Rule::Metrics
|
|||
end
|
||||
end
|
||||
end
|
||||
CODE
|
||||
CRYSTAL
|
||||
|
||||
describe CyclomaticComplexity do
|
||||
it "passes for empty methods" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue