Commit 24c45df0 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Update web hook spec

parent 766a8776
......@@ -393,4 +393,3 @@ RSpec/RepeatedExample:
- 'spec/features/projects/files/template_type_dropdown_spec.rb'
- 'spec/helpers/users_helper_spec.rb'
- 'spec/services/notification_service_spec.rb'
- 'spec/services/web_hook_service_spec.rb'
---
title: Remove duplicate spec in web hook service spec
merge_request: 28669
author: Rajendra Kadam
type: fixed
......@@ -71,16 +71,6 @@ describe WebHookService do
end
end
it 'POSTs to the webhook URL' do
stub_full_request(project_hook.url, method: :post)
service_instance.execute
expect(WebMock).to have_requested(:post, stubbed_hostname(project_hook.url)).with(
headers: headers
).once
end
it 'POSTs the data as JSON' do
stub_full_request(project_hook.url, method: :post)
......
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