Add test for slash escaping

This commit is contained in:
Alex Ling 2020-06-09 09:28:37 +00:00
parent bac7be5163
commit 3d352ed062

View File

@ -68,4 +68,9 @@ describe Rule do
.should eq "Ch. CH ID testing"
rule.render({} of String => String).should eq "testing"
end
it "escapes slash" do
rule = Rule.new "{id}"
rule.render({"id" => "/hello/world"}).should eq "_hello_world"
end
end