add html_url on api issue-comment

This commit is contained in:
nazoking
2015-04-20 14:32:16 +09:00
parent c467594199
commit 5568acc5f3
5 changed files with 12 additions and 8 deletions

View File

@@ -90,11 +90,12 @@ class JsonFormatSpec extends Specification {
user = apiUser,
body= "Me too",
created_at= date1,
updated_at= date1)
updated_at= date1)(RepositoryName("octocat","Hello-World"), 100)
val apiCommentJson = s"""{
"id": 1,
"body": "Me too",
"user": $apiUserJson,
"html_url" : "${context.baseUrl}/octocat/Hello-World/issues/100#comment-1",
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z"
}"""