Commit a1ef6325 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'webhook-service-spec' into 'master'

Update web hook spec

See merge request gitlab-org/gitlab!28669
parents 8810c5d3 24c45df0
......@@ -390,4 +390,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