mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Add test for slash escaping
This commit is contained in:
parent
bac7be5163
commit
3d352ed062
@ -68,4 +68,9 @@ describe Rule do
|
|||||||
.should eq "Ch. CH ID testing"
|
.should eq "Ch. CH ID testing"
|
||||||
rule.render({} of String => String).should eq "testing"
|
rule.render({} of String => String).should eq "testing"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "escapes slash" do
|
||||||
|
rule = Rule.new "{id}"
|
||||||
|
rule.render({"id" => "/hello/world"}).should eq "_hello_world"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user