add failing test for #688

This commit is contained in:
Konstantin Haase 2013-03-20 10:27:05 +01:00
parent 07c58e02e5
commit b08af687c3
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@ class CompileTest < Test::Unit::TestCase
parses "/:id/test.bar", "/2e/test.bar", {"id" => "2e"}
fails "/:id/test.bar", "/%2E/test.bar"
parses '/10.1/:id', '/10.1/test', "id" => "test"
parses '/10.1/:id', '/10.1/te.st', "id" => "te.st"
parses "/:file.:ext", "/pony%2ejpg", "file" => "pony", "ext" => "jpg"
parses "/:file.:ext", "/pony%E6%AD%A3%2Ejpg", "file" => "pony%E6%AD%A3", "ext" => "jpg"
parses "/:file.:ext", "/pony%e6%ad%a3%2ejpg", "file" => "pony%e6%ad%a3", "ext" => "jpg"