aboutsummaryrefslogtreecommitdiff
path: root/tests/src/test/scala
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-07-24 17:11:02 +0200
committeradamw <adam@warski.org>2017-07-24 17:11:02 +0200
commitfc62bf67b23793b3766f527de5ffac73e78d2d18 (patch)
treec62aefd4c9aa06d2d8db1ec0750336bb05ba27ec /tests/src/test/scala
parent81d290bc8658841f48d8a7fc10d88813eba16ffc (diff)
downloadsttp-fc62bf67b23793b3766f527de5ffac73e78d2d18.tar.gz
sttp-fc62bf67b23793b3766f527de5ffac73e78d2d18.tar.bz2
sttp-fc62bf67b23793b3766f527de5ffac73e78d2d18.zip
Additional empty-body tests
Diffstat (limited to 'tests/src/test/scala')
-rw-r--r--tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala b/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala
index 00d9e6f..e5a73f7 100644
--- a/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala
+++ b/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala
@@ -262,6 +262,11 @@ class BasicTests
.force()
response.body should be("a==/b c:=/d")
}
+
+ name should "post without a body" in {
+ val response = postEcho.send().force()
+ response.body should be("POST /echo")
+ }
}
def headerTests(): Unit = {