diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-14 12:10:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-14 12:10:24 +0300 |
commit | c19bb4adbf354562715ba019892f464080eba850 (patch) | |
tree | 880860d58bc78a904d474221c9725337a7823ee9 /spec/workers/web_hook_worker_spec.rb | |
parent | 94a191f3d969724031efb9b15cdfd97a5af6defa (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/web_hook_worker_spec.rb')
-rw-r--r-- | spec/workers/web_hook_worker_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/workers/web_hook_worker_spec.rb b/spec/workers/web_hook_worker_spec.rb new file mode 100644 index 00000000000..becc7461f2a --- /dev/null +++ b/spec/workers/web_hook_worker_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true +require 'spec_helper' + +RSpec.describe WebHookWorker do + include AfterNextHelpers + + let_it_be(:project_hook) { create(:project_hook) } + let_it_be(:data) { { foo: 'bar' } } + let_it_be(:hook_name) { 'push_hooks' } + + describe '#perform' do + it 'delegates to WebHookService' do + expect_next(WebHookService, project_hook, data.with_indifferent_access, hook_name).to receive(:execute) + + subject.perform(project_hook.id, data, hook_name) + end + end +end |