diff options
-rw-r--r-- | core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala | 12 | ||||
-rw-r--r-- | project/build.properties | 2 |
2 files changed, 5 insertions, 9 deletions
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 1cab218..c9b94c0 100644 --- a/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala +++ b/core/src/test/scala/com/softwaremill/sttp/testing/SttpBackendStubTests.scala @@ -108,8 +108,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 201 as a success" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(201) val result = sttp @@ -121,8 +120,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 300 as a failure" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(300) val result = sttp @@ -134,8 +132,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 400 as a failure" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(400) val result = sttp @@ -147,8 +144,7 @@ class SttpBackendStubTests extends FlatSpec with Matchers with ScalaFutures { } it should "handle a 500 as a failure" in { - implicit val s = SttpBackendStub(HttpURLConnectionBackend()) - .whenAnyRequest + implicit val s = SttpBackendStub(HttpURLConnectionBackend()).whenAnyRequest .thenRespondWithCode(500) val result = sttp diff --git a/project/build.properties b/project/build.properties index ee9d7cd..a31be40 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.0.3
\ No newline at end of file +sbt.version=1.0.4
\ No newline at end of file |