Update go-github library

This commit is contained in:
Luke Kysow
2018-12-12 09:55:17 -06:00
parent e001353ae9
commit 139f05ab49
170 changed files with 14305 additions and 3086 deletions

View File

@@ -14,7 +14,7 @@ import (
)
func TestGitignoresService_List(t *testing.T) {
setup()
client, mux, _, teardown := setup()
defer teardown()
mux.HandleFunc("/gitignore/templates", func(w http.ResponseWriter, r *http.Request) {
@@ -34,7 +34,7 @@ func TestGitignoresService_List(t *testing.T) {
}
func TestGitignoresService_Get(t *testing.T) {
setup()
client, mux, _, teardown := setup()
defer teardown()
mux.HandleFunc("/gitignore/templates/name", func(w http.ResponseWriter, r *http.Request) {
@@ -54,6 +54,9 @@ func TestGitignoresService_Get(t *testing.T) {
}
func TestGitignoresService_Get_invalidTemplate(t *testing.T) {
client, _, _, teardown := setup()
defer teardown()
_, _, err := client.Gitignores.Get(context.Background(), "%")
testURLParseError(t, err)
}