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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-14 12:10:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-14 12:10:24 +0300
commitc19bb4adbf354562715ba019892f464080eba850 (patch)
tree880860d58bc78a904d474221c9725337a7823ee9 /spec/workers
parent94a191f3d969724031efb9b15cdfd97a5af6defa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/web_hook_worker_spec.rb18
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