summaryrefslogtreecommitdiff
path: root/spec/workers/web_hook_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/web_hook_worker_spec.rb')
-rw-r--r--spec/workers/web_hook_worker_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/workers/web_hook_worker_spec.rb b/spec/workers/web_hook_worker_spec.rb
index becc7461f2a..548cf4c717a 100644
--- a/spec/workers/web_hook_worker_spec.rb
+++ b/spec/workers/web_hook_worker_spec.rb
@@ -10,9 +10,14 @@ RSpec.describe WebHookWorker do
describe '#perform' do
it 'delegates to WebHookService' do
- expect_next(WebHookService, project_hook, data.with_indifferent_access, hook_name).to receive(:execute)
+ expect_next(WebHookService, project_hook, data.with_indifferent_access, hook_name, anything).to receive(:execute)
subject.perform(project_hook.id, data, hook_name)
end
+
+ it_behaves_like 'worker with data consistency',
+ described_class,
+ feature_flag: :load_balancing_for_web_hook_worker,
+ data_consistency: :delayed
end
end