Commit 4c55e6dc authored by Sander van Harmelen's avatar Sander van Harmelen

Fix the tests

parent c5c067ef
module github.com/xanzy/go-gitlab
go 1.13
require (
github.com/google/go-querystring v1.0.0
github.com/stretchr/testify v1.3.0
......
......@@ -468,7 +468,7 @@ func TestChangeAllowedApprovers(t *testing.T) {
defer teardown(server)
mux.HandleFunc("/api/v4/projects/1/approvers", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "POST")
testMethod(t, r, "PUT")
testBody(t, r, `{"approver_ids":[1],"approver_group_ids":[2]}`)
fmt.Fprint(w, `{
"approvers": [{"user":{"id":1}}],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment