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>2023-09-01 21:08:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-01 21:08:40 +0300
commita8be0f7506339309e264218deffa008bfdf2d9cc (patch)
tree95c07d590f7ab8e84fb3e65c81d2561d78ff65e1 /spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb
parente1faff6544efe7f1b31e0e73312e7b832c00e6a4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb')
-rw-r--r--spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb b/spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb
deleted file mode 100644
index 237b5081bb1..00000000000
--- a/spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe Namespaces::InProductMarketingEmailsWorker, '#perform', unless: Gitlab.ee?, feature_category: :experimentation_activation do
- # Running this in EE would call the overridden method, which can't be tested in CE.
- # The EE code is covered in a separate EE spec.
-
- context 'when the in_product_marketing_emails_enabled setting is disabled' do
- before do
- stub_application_setting(in_product_marketing_emails_enabled: false)
- end
-
- it 'does not execute the email service' do
- expect(Namespaces::InProductMarketingEmailsService).not_to receive(:send_for_all_tracks_and_intervals)
-
- subject.perform
- end
- end
-
- context 'when the in_product_marketing_emails_enabled setting is enabled' do
- before do
- stub_application_setting(in_product_marketing_emails_enabled: true)
- end
-
- it 'executes the email service' do
- expect(Namespaces::InProductMarketingEmailsService).to receive(:send_for_all_tracks_and_intervals)
-
- subject.perform
- end
- end
-end