Returning nil on delete, fix species test

This commit is contained in:
Matthew Dillon 2015-01-15 17:01:07 -09:00
parent eb7c778be8
commit a669cf8d93
3 changed files with 3 additions and 2 deletions

View file

@ -156,6 +156,7 @@ func TestSpeciesService_Delete(t *testing.T) {
mux.HandleFunc(urlPath(t, router.DeleteSpecies, map[string]string{"Id": "1"}), func(w http.ResponseWriter, r *http.Request) {
called = true
testMethod(t, r, "DELETE")
testBody(t, r, "")
w.WriteHeader(http.StatusOK)
writeJSON(w, want)