aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/scala/com
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/scala/com')
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/RequestTests.scala1
-rw-r--r--core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala4
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala b/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala
index e62112a..5fc9d50 100644
--- a/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala
+++ b/core/src/test/scala/com/softwaremill/sttp/RequestTests.scala
@@ -33,6 +33,7 @@ class RequestTests extends FlatSpec with Matchers {
val response =
Response(Right(()),
0,
+ "",
List((SetCookieHeader, "k1=v1"), (SetCookieHeader, "k2=v2")),
Nil)
sttp
diff --git a/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala b/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala
index c9b94c0..f3d2cd4 100644
--- a/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala
+++ b/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala
@@ -20,11 +20,11 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures {
case r
if r.method == Method.POST && r.uri.path.endsWith(
List("partial10")) =>
- Response(Right(10), 200, Nil, Nil)
+ Response(Right(10), 200, "OK", Nil, Nil)
case r
if r.method == Method.POST && r.uri.path.endsWith(
List("partialAda")) =>
- Response(Right("Ada"), 200, Nil, Nil)
+ Response(Right("Ada"), 200, "OK", Nil, Nil)
})
"backend stub" should "use the first rule if it matches" in {