+htc #19708 provides default marshaller for akka.Done (200, empty text response)

This commit is contained in:
Konrad Malawski 2016-02-08 16:07:35 +01:00
parent 4dd6efc6a8
commit 3d718cf1f1
4 changed files with 13 additions and 1 deletions

View file

@ -27,6 +27,9 @@ class MarshallingSpec extends FreeSpec with Matchers with BeforeAndAfterAll with
"StringMarshaller should marshal strings to `text/plain` content in UTF-8" in {
marshal("Ha“llo") shouldEqual HttpEntity("Ha“llo")
}
"DoneMarshaller should enable marshalling of akka.Done" in {
marshal(akka.Done) shouldEqual HttpEntity("")
}
"CharArrayMarshaller should marshal char arrays to `text/plain` content in UTF-8" in {
marshal("Ha“llo".toCharArray) shouldEqual HttpEntity("Ha“llo")
}