add html_url and comments_url on api issue

This commit is contained in:
nazoking
2015-04-20 13:19:17 +09:00
parent 43b7f83082
commit c467594199
4 changed files with 13 additions and 7 deletions

View File

@@ -157,13 +157,15 @@ class JsonFormatSpec extends Specification {
state = "open",
body = "I'm having a problem with this.",
created_at = date1,
updated_at = date1)
updated_at = date1)(RepositoryName("octocat","Hello-World"))
val apiIssueJson = s"""{
"number": 1347,
"state": "open",
"title": "Found a bug",
"body": "I'm having a problem with this.",
"user": $apiUserJson,
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
"html_url": "${context.baseUrl}/octocat/Hello-World/issues/1347",
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z"
}"""