Add assignee entry for the result of pull request related api

This commit is contained in:
Yasuhiro Takagi
2017-06-22 21:23:20 +09:00
parent 0bd833a6b7
commit 884fc5318a
6 changed files with 23 additions and 12 deletions

View File

@@ -281,7 +281,8 @@ class JsonFormatSpec extends FunSuite {
merged_by = Some(apiUser),
title = "new-feature",
body = "Please pull these awesome changes",
user = apiUser
user = apiUser,
assignee = Left(apiUser)
)
val apiPullRequestJson = s"""{
@@ -311,6 +312,7 @@ class JsonFormatSpec extends FunSuite {
"title": "new-feature",
"body": "Please pull these awesome changes",
"user": $apiUserJson,
"assignee": $apiUserJson,
"html_url": "${context.baseUrl}/octocat/Hello-World/pull/1347",
"url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/pulls/1347",
"commits_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/pulls/1347/commits",