1
0
Fork 0
forked from forgejo/forgejo

Let not-logged-in users view releases (#1999)

This commit is contained in:
Ethan Koenig 2017-06-17 23:38:24 -04:00 committed by Lunny Xiao
parent 6e452c4da7
commit 4df1a24096
3 changed files with 17 additions and 4 deletions

View file

@ -19,3 +19,11 @@ func TestViewReleases(t *testing.T) {
resp := session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
}
func TestViewReleasesNoLogin(t *testing.T) {
prepareTestEnv(t)
req := NewRequest(t, "GET", "/user2/repo1/releases")
resp := MakeRequest(req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
}