Commit 261b930b authored by Martin Sefcik's avatar Martin Sefcik

Fixed failing tests

parent a35ee8f2
......@@ -307,12 +307,12 @@ func (s *CommitsService) GetCommitStatuses(
//
// GitLab API docs: http://doc.gitlab.com/ce/api/commits.html#post-the-status-to-commit
type SetCommitStatusOptions struct {
State BuildState `url:"state"`
Ref string `url:"ref,omitempty"`
Name string `url:"name,omitempty"`
Context string `url:"context,omitempty"`
TargetUrl string `url:"target_url,omitempty"`
Description string `url:"description,omitempty"`
State BuildState `url:"state" json:"state"`
Ref string `url:"ref,omitempty" json:"ref,omitempty"`
Name string `url:"name,omitempty" json:"name,omitempty"`
Context string `url:"context,omitempty" json:"context,omitempty"`
TargetUrl string `url:"target_url,omitempty" json:"target_url,omitempty"`
Description string `url:"description,omitempty" json:"description,omitempty"`
}
type BuildState string
......
......@@ -41,7 +41,7 @@ func TestSetCommitStatus(t *testing.T) {
mux.HandleFunc("/projects/1/statuses/b0b3a907f41409829b307a28b82fdbd552ee5a27", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "POST")
testFormValues(t, r, values{
testJsonBody(t, r, values{
"state": "running",
"ref": "master",
"name": "ci/jenkins",
......
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