Commit 29148e7d authored by Stan Hu's avatar Stan Hu

Fix broken spec/controllers/projects/releases_controller_spec.rb

e8bc01a1 changed the behavior so that
that all unauthenticated access to endpoints results in a 302
redirection instead of a 401 Unauthorized.

Closes https://gitlab.com/gitlab-org/gitlab/issues/35276
parent 6bb7fffc
......@@ -56,8 +56,8 @@ describe Projects::ReleasesController do
context 'when the project is private and the user is not logged in' do
let(:project) { private_project }
it 'renders a 302' do
expect(response.status).to eq(302)
it 'returns a redirect' do
expect(response).to have_gitlab_http_status(:redirect)
end
end
end
......@@ -78,8 +78,8 @@ describe Projects::ReleasesController do
context 'when the project is private and the user is not logged in' do
let(:project) { private_project }
it 'renders a 401' do
expect(response.status).to eq(401)
it 'returns a redirect' do
expect(response).to have_gitlab_http_status(:redirect)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment