Commit 22bb21fb authored by Stan Hu's avatar Stan Hu

Merge branch 'sh-fix-issue-35276' into 'master'

Fix broken spec/controllers/projects/releases_controller_spec.rb

Closes #35276

See merge request gitlab-org/gitlab!19393
parents 7cb4be36 29148e7d
...@@ -56,8 +56,8 @@ describe Projects::ReleasesController do ...@@ -56,8 +56,8 @@ describe Projects::ReleasesController do
context 'when the project is private and the user is not logged in' do context 'when the project is private and the user is not logged in' do
let(:project) { private_project } let(:project) { private_project }
it 'renders a 302' do it 'returns a redirect' do
expect(response.status).to eq(302) expect(response).to have_gitlab_http_status(:redirect)
end end
end end
end end
...@@ -78,8 +78,8 @@ describe Projects::ReleasesController do ...@@ -78,8 +78,8 @@ describe Projects::ReleasesController do
context 'when the project is private and the user is not logged in' do context 'when the project is private and the user is not logged in' do
let(:project) { private_project } let(:project) { private_project }
it 'renders a 401' do it 'returns a redirect' do
expect(response.status).to eq(401) expect(response).to have_gitlab_http_status(:redirect)
end end
end 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