Skip to content

Commit

Permalink
Update sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Nov 30, 2017
1 parent 83e6884 commit a70053c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.0.3
sbt.version=1.0.4

0 comments on commit a70053c

Please sign in to comment.