diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 21:09:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 21:09:05 +0300 |
commit | c2367afbf57ebc65d5b78a743b5d6a91f0aece9f (patch) | |
tree | 165c2c54bf72ab3a3a9417d97f63ece5c9eba9f5 /spec/controllers | |
parent | 51a9512965d86e3094968fa514e4ae8a96d38cf3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/hooks_controller_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/controllers/projects/hooks_controller_spec.rb b/spec/controllers/projects/hooks_controller_spec.rb index f50ef2d804c..e97f602d9ab 100644 --- a/spec/controllers/projects/hooks_controller_spec.rb +++ b/spec/controllers/projects/hooks_controller_spec.rb @@ -12,12 +12,11 @@ describe Projects::HooksController do end describe '#index' do - it 'redirects to settings/integrations page' do - get(:index, params: { namespace_id: project.namespace, project_id: project }) + it 'renders index with 200 status code' do + get :index, params: { namespace_id: project.namespace, project_id: project } - expect(response).to redirect_to( - project_settings_integrations_path(project) - ) + expect(response).to have_gitlab_http_status(:ok) + expect(response).to render_template(:index) end end |