diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-12 11:48:47 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-12 11:48:47 +0300 |
commit | 9fdcbcb0de414967618cfd7f26141e85805fcb54 (patch) | |
tree | 42c7ab3867e78ac285fef4fbb95044221554c20a /spec/requests/api/project_hooks_spec.rb | |
parent | d5264e8804bca70e613c418a9d346f5787c6fc7a (diff) |
Have trait all_events_enabled so that's easier to reuse, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13823349
Diffstat (limited to 'spec/requests/api/project_hooks_spec.rb')
-rw-r--r-- | spec/requests/api/project_hooks_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/requests/api/project_hooks_spec.rb b/spec/requests/api/project_hooks_spec.rb index 92c38e69283..914e88c9487 100644 --- a/spec/requests/api/project_hooks_spec.rb +++ b/spec/requests/api/project_hooks_spec.rb @@ -7,10 +7,9 @@ describe API::API, 'ProjectHooks', api: true do let!(:project) { create(:project, creator_id: user.id, namespace: user.namespace) } let!(:hook) do create(:project_hook, - project: project, url: "http://example.com", - push_events: true, merge_requests_events: true, - tag_push_events: true, issues_events: true, note_events: true, - build_events: true, pipeline_events: true, + :all_events_enabled, + project: project, + url: 'http://example.com', enable_ssl_verification: true) end |