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:
Diffstat (limited to 'spec/workers/tasks_to_be_done/create_worker_spec.rb')
-rw-r--r--spec/workers/tasks_to_be_done/create_worker_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/workers/tasks_to_be_done/create_worker_spec.rb b/spec/workers/tasks_to_be_done/create_worker_spec.rb
deleted file mode 100644
index 3a4e10b6a6f..00000000000
--- a/spec/workers/tasks_to_be_done/create_worker_spec.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe TasksToBeDone::CreateWorker, feature_category: :onboarding do
- let_it_be(:current_user) { create(:user) }
-
- let(:assignee_ids) { [1, 2] }
- let(:job_args) { [123, current_user.id, assignee_ids] }
-
- describe '.perform' do
- it 'executes the task services for all tasks to be done', :aggregate_failures do
- expect { described_class.new.perform(*job_args) }.not_to change { Issue.count }
- end
- end
-
- include_examples 'an idempotent worker' do
- it 'creates 3 task issues' do
- expect { subject }.not_to change { Issue.count }
- end
- end
-end