Skip to content

Commit

Permalink
delete repeat test
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian committed May 17, 2017
1 parent 572195d commit 47212ee
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions github4s/shared/src/test/scala/github4s/unit/ReposSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -152,38 +152,6 @@ class ReposSpec extends BaseSpec {
)
}

"Repos.createRelease" should "call httpClient.post with the right parameters" in {
val response: GHResponse[Release] = Right(GHResult(release, createdStatusCode, Map.empty))

val request =
s"""
|{
| "tag_name": "$validTagTitle",
| "name": "$validTagTitle",
| "target_commitish": "master",
| "body": "$validNote"
|}""".stripMargin

val httpClientMock = httpClientMockPost[Release](
url = s"repos/$validRepoOwner/$validRepoName/releases",
json = request,
response = response
)

val repos = new Repos[String, Id] {
override val httpClient: HttpClient[String, Id] = httpClientMock
}
repos.createRelease(
sampleToken,
headerUserAgent,
validRepoOwner,
validRepoName,
validTagTitle,
validTagTitle,
validNote,
Some("master"))
}

"Repos.getStatus" should "call httpClient.get with the right parameters" in {
val response: GHResponse[CombinedStatus] =
Right(GHResult(combinedStatus, okStatusCode, Map.empty))
Expand Down

0 comments on commit 47212ee

Please sign in to comment.