+doc add unit tests for extractDataBytes and extractRequestEntity directives (#21022)
This commit is contained in:
parent
150511a44b
commit
867131f626
5 changed files with 77 additions and 1 deletions
|
|
@ -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"
|
||||
}
|
||||
//#
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue