+doc add unit tests for extractDataBytes and extractRequestEntity directives (#21022)

This commit is contained in:
Hawstein 2016-07-26 18:02:04 +08:00 committed by Konrad Malawski
parent 150511a44b
commit 867131f626
5 changed files with 77 additions and 1 deletions

View file

@ -805,7 +805,7 @@ class BasicDirectivesExamplesSpec extends RoutingSpec {
// tests:
val httpEntity = HttpEntity(ContentTypes.`text/plain(UTF-8)`, "req")
Post("/abc", httpEntity) ~> route ~> check {
responseAs[String] shouldEqual s"Request entity content-type is text/plain; charset=UTF-8"
responseAs[String] shouldEqual "Request entity content-type is text/plain; charset=UTF-8"
}
//#
}