mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -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"
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user