Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-11-02 15:24:24 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-02 15:24:24 +0300
commit37f229c7358a48c6a9af3481927e9e4faee17e3d (patch)
tree5a4e42ec72d388959ee35911e583ed12d04dc8f4 /spec/requests/api/system_hooks_spec.rb
parent57fd233a557158dbaa1a227f7c549fbe6a45e799 (diff)
Update docs and test description
[ci skip]
Diffstat (limited to 'spec/requests/api/system_hooks_spec.rb')
-rw-r--r--spec/requests/api/system_hooks_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/api/system_hooks_spec.rb b/spec/requests/api/system_hooks_spec.rb
index 55567941e08..f685a3685e6 100644
--- a/spec/requests/api/system_hooks_spec.rb
+++ b/spec/requests/api/system_hooks_spec.rb
@@ -48,6 +48,7 @@ describe API::API, api: true do
it "responds with 400 if url not given" do
post api("/hooks", admin)
+
expect(response).to have_http_status(400)
end
@@ -57,7 +58,7 @@ describe API::API, api: true do
end.not_to change { SystemHook.count }
end
- it 'allows the events to be selected' do
+ it 'sets default values for events' do
post api('/hooks', admin), url: 'http://mep.mep', enable_ssl_verification: true
expect(response).to have_http_status(201)