Consistently use CRYSTAL marker for heredocs with crystal code

This commit is contained in:
Sijawusz Pur Rahnama 2022-12-08 13:57:46 +01:00
parent 2cb8c1381f
commit 071a8b7afb
2 changed files with 10 additions and 10 deletions

View file

@ -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