diff options
Diffstat (limited to 'tests/integration/empty_repo_test.go')
-rw-r--r-- | tests/integration/empty_repo_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/integration/empty_repo_test.go b/tests/integration/empty_repo_test.go index 6a8c70f12f..127df5919d 100644 --- a/tests/integration/empty_repo_test.go +++ b/tests/integration/empty_repo_test.go @@ -75,6 +75,11 @@ func TestEmptyRepoAddFile(t *testing.T) { req = NewRequest(t, "GET", "/api/v1/repos/user30/empty/raw/main/README.md").AddTokenAuth(token) session.MakeRequest(t, req, http.StatusNotFound) + // test feed + req = NewRequest(t, "GET", "/user30/empty/rss/branch/main/README.md").AddTokenAuth(token).SetHeader("Accept", "application/rss+xml") + resp = session.MakeRequest(t, req, http.StatusOK) + assert.Contains(t, resp.Body.String(), "</rss>") + // create a new file req = NewRequest(t, "GET", "/user30/empty/_new/"+setting.Repository.DefaultBranch) resp = session.MakeRequest(t, req, http.StatusOK) |