Skip to content

Commit

Permalink
Test that url generation ignores unexpected splat params
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Aug 20, 2011
1 parent 2bb7209 commit ad3ea92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/test/scala/org/scalatra/UrlGeneratorTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ class UrlGeneratorTest extends ScalatraFunSuite {
test("Mix named and splat") {
generate(mixNamedAndSplat, Map("foo" -> "deep"), Seq("purple")) should equal ("/mix-named-and-splat-params/deep/purple")
}

test("Unexpected splat parameters are just ignored at the moment") {
generate(singleSplat, "black", "coffee") should equal ("/single-splat/black")
}
}

0 comments on commit ad3ea92

Please sign in to comment.