Fix long lines

This commit is contained in:
Alex Ling
2020-05-05 05:45:20 +00:00
parent c3608c101b
commit 049bd3ab2c
5 changed files with 11 additions and 6 deletions

View File

@@ -64,7 +64,8 @@ describe Rule do
it "renders a few examples correctly" do
rule = Rule.new "[Ch. {chapter }] {title | id} testing"
rule.render({"id" => "ID"}).should eq "ID testing"
rule.render({"chapter" => "CH", "id" => "ID"}).should eq "Ch. CH ID testing"
rule.render({"chapter" => "CH", "id" => "ID"})
.should eq "Ch. CH ID testing"
rule.render({} of String => String).should eq "testing"
end
end