Updated to fix truncated name in JSON: watchers_coun

The correct field in the JSON should be `watchers_count` rather
than the truncated version `watchers_coun`.
This commit is contained in:
Steve Kemp
2015-08-18 09:14:44 +03:00
parent f042d709ac
commit f73c86d533
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ case class ApiRepository(
default_branch: String, default_branch: String,
owner: ApiUser) { owner: ApiUser) {
val forks_count = forks val forks_count = forks
val watchers_coun = watchers val watchers_count = watchers
val url = ApiPath(s"/api/v3/repos/${full_name}") val url = ApiPath(s"/api/v3/repos/${full_name}")
val http_url = ApiPath(s"/git/${full_name}.git") val http_url = ApiPath(s"/git/${full_name}.git")
val clone_url = ApiPath(s"/git/${full_name}.git") val clone_url = ApiPath(s"/git/${full_name}.git")

View File

@@ -56,7 +56,7 @@ class JsonFormatSpec extends Specification {
"default_branch" : "master", "default_branch" : "master",
"owner" : $apiUserJson, "owner" : $apiUserJson,
"forks_count" : 0, "forks_count" : 0,
"watchers_coun" : 0, "watchers_count" : 0,
"url" : "${context.baseUrl}/api/v3/repos/octocat/Hello-World", "url" : "${context.baseUrl}/api/v3/repos/octocat/Hello-World",
"http_url" : "${context.baseUrl}/git/octocat/Hello-World.git", "http_url" : "${context.baseUrl}/git/octocat/Hello-World.git",
"clone_url" : "${context.baseUrl}/git/octocat/Hello-World.git", "clone_url" : "${context.baseUrl}/git/octocat/Hello-World.git",