Change org name in GitHub testdata

The example JSON taken from GitHub's API documentation doesn't indicate that
`login` is the name of an organisation rather than a user. Change it to
something that looks more like an org, because it will make a test that I'm
about to add more readable. The endpoint name changes accordingly.
This commit is contained in:
Dan Carley 2015-01-14 22:12:24 +00:00
parent f33b6efb74
commit 86b0329d57

View file

@ -21,7 +21,7 @@ func NewServer() *httptest.Server {
case "/user/orgs":
w.Write(userOrgsPayload)
return
case "/orgs/github/repos":
case "/orgs/octocats-inc/repos":
w.Write(userReposPayload)
return
case "/repos/octocat/Hello-World/contents/.drone.yml":
@ -108,7 +108,7 @@ var emptyObjPayload = []byte(`{}`)
// sample org list response
var userOrgsPayload = []byte(`
[
{ "login": "github", "id": 1 }
{ "login": "octocats-inc", "id": 1 }
]
`)