Commit 6dc4743a authored by jboyson's avatar jboyson

Update specs to expect redirect

parent fc16e863
......@@ -610,7 +610,7 @@ RSpec.describe ProjectsController do
it 'does not show any references to the conflicting path' do
expect { update_project(path: random_name) }.not_to change { project.reload.path }
expect(response).to have_gitlab_http_status(:ok)
expect(response).to have_gitlab_http_status(:redirect)
expect(response.body).not_to include(random_name)
end
end
......@@ -668,7 +668,7 @@ RSpec.describe ProjectsController do
.not_to change { project.reload.path }
expect(controller).to set_flash[:alert].to(s_('UpdateProject|Cannot rename project because it contains container registry tags!'))
expect(response).to have_gitlab_http_status(:ok)
expect(response).to have_gitlab_http_status(:redirect)
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