=htp fix UnsupportedOperationException in PathMatchers.valueMap2PathMatcher

This commit is contained in:
Mathias 2014-10-02 15:56:03 +02:00
parent 2630742885
commit f7d7a289f3
2 changed files with 15 additions and 1 deletions

View file

@ -94,6 +94,11 @@ class PathDirectivesSpec extends RoutingSpec {
"reject [/black]" in test()
}
"pathPrefix(Map.empty)" should {
val test = testFor(pathPrefix(Map[String, Int]()) { echoCaptureAndUnmatchedPath })
"reject [/black]" in test()
}
"pathPrefix(Segment)" should {
val test = testFor(pathPrefix(Segment) { echoCaptureAndUnmatchedPath })
"accept [/abc]" in test("abc:")