changing tests

This commit is contained in:
Pedro Nasser
2016-08-15 23:22:41 -03:00
parent b57e6656d2
commit e90c4b3a4a
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ func TestAppCreate(t *testing.T) {
{"/v1/apps", `{ "app": { "name": "&&%@!#$#@$" } }`, http.StatusInternalServerError, models.ErrAppsValidationInvalidName},
// success
{"/v1/apps", `{ "app": { "name": "teste" } }`, http.StatusOK, nil},
{"/v1/apps", `{ "app": { "name": "teste" } }`, http.StatusCreated, nil},
} {
body := bytes.NewBuffer([]byte(test.body))
_, rec := routerRequest(t, router, "POST", test.path, body)