|
|
|
@ -367,6 +367,7 @@ func TestRepositoriesService_ListBranches(t *testing.T) { |
|
|
|
|
|
|
|
mux.HandleFunc("/repos/o/r/branches", func(w http.ResponseWriter, r *http.Request) { |
|
|
|
testMethod(t, r, "GET") |
|
|
|
testHeader(t, r, "Accept", mediaTypeProtectedBranchesPreview) |
|
|
|
testFormValues(t, r, values{"page": "2"}) |
|
|
|
fmt.Fprint(w, `[{"name":"master", "commit" : {"sha" : "a57781", "url" : "https://api.github.com/repos/o/r/commits/a57781"}}]`) |
|
|
|
}) |
|
|
|
|