summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/hooks_controller_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-28 15:09:27 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-28 15:09:27 +0000
commit3a25b40d5572a1de4220a9bd284025bf5be1d16b (patch)
tree748ec93e09ada6def17ac87b4b8479dccab20d37 /spec/controllers/projects/hooks_controller_spec.rb
parent22fd199237e247c36de5b982d444cedc194126e6 (diff)
downloadgitlab-ce-3a25b40d5572a1de4220a9bd284025bf5be1d16b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/projects/hooks_controller_spec.rb')
-rw-r--r--spec/controllers/projects/hooks_controller_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/controllers/projects/hooks_controller_spec.rb b/spec/controllers/projects/hooks_controller_spec.rb
index 18f16937505..0045262a4af 100644
--- a/spec/controllers/projects/hooks_controller_spec.rb
+++ b/spec/controllers/projects/hooks_controller_spec.rb
@@ -154,28 +154,6 @@ RSpec.describe Projects::HooksController do
expect(flash[:alert]).to be_blank
end
- it 'ignores branch_filter_strategy when flag is disabled' do
- stub_feature_flags(enhanced_webhook_support_regex: false)
- hook_params = {
- url: 'http://example.com',
- branch_filter_strategy: 'regex',
- push_events: true
- }
- params = { namespace_id: project.namespace, project_id: project, hook: hook_params }
-
- expect { post :create, params: params }.to change(ProjectHook, :count).by(1)
-
- project_hook = ProjectHook.order_id_desc.take
-
- expect(project_hook).to have_attributes(
- url: 'http://example.com',
- branch_filter_strategy: 'wildcard'
- )
-
- expect(response).to have_gitlab_http_status(:found)
- expect(flash[:alert]).to be_blank
- end
-
it 'alerts the user if the new hook is invalid' do
hook_params = {
token: "TEST\nTOKEN",