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>2020-05-20 21:08:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-20 21:08:00 +0300
commitf781b0b69368ea3181cf892305c60a22886c0d7e (patch)
tree0737d7313d4e5760e3addcec0b0f40c474008dcf /spec/workers/propagate_integration_worker_spec.rb
parent1d5ae049f089db097048fa896105ad75fe859596 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/propagate_integration_worker_spec.rb')
-rw-r--r--spec/workers/propagate_integration_worker_spec.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/workers/propagate_integration_worker_spec.rb b/spec/workers/propagate_integration_worker_spec.rb
new file mode 100644
index 00000000000..e49869a38e9
--- /dev/null
+++ b/spec/workers/propagate_integration_worker_spec.rb
@@ -0,0 +1,26 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe PropagateIntegrationWorker do
+ describe '#perform' do
+ let(:integration) do
+ PushoverService.create(
+ template: true,
+ active: true,
+ device: 'MyDevice',
+ sound: 'mic',
+ priority: 4,
+ user_key: 'asdf',
+ api_key: '123456789'
+ )
+ end
+
+ it 'calls the propagate service with the integration' do
+ expect(Admin::PropagateIntegrationService).to receive(:propagate)
+ .with(integration: integration, overwrite: true)
+
+ subject.perform(integration.id, true)
+ end
+ end
+end