diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-06-17 23:38:24 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-18 11:38:24 +0800 |
commit | 4df1a240965f6d3f4e3eed2bd4bddceeb9182614 (patch) | |
tree | abf4a9e3bb405bff503cbb661c6fbeeb3aaf9d0f /integrations | |
parent | 6e452c4da7400495b3298c3c9477378249c9cd9e (diff) | |
download | gitea-4df1a240965f6d3f4e3eed2bd4bddceeb9182614.tar.gz gitea-4df1a240965f6d3f4e3eed2bd4bddceeb9182614.zip |
Let not-logged-in users view releases (#1999)
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/release_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/integrations/release_test.go b/integrations/release_test.go index ce33ad61d9..f097531a35 100644 --- a/integrations/release_test.go +++ b/integrations/release_test.go @@ -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) +} |