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/namespaces/onboarding_issue_created_worker_spec.rb')
-rw-r--r--spec/workers/namespaces/onboarding_issue_created_worker_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/workers/namespaces/onboarding_issue_created_worker_spec.rb b/spec/workers/namespaces/onboarding_issue_created_worker_spec.rb
deleted file mode 100644
index 0a896d864b7..00000000000
--- a/spec/workers/namespaces/onboarding_issue_created_worker_spec.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe Namespaces::OnboardingIssueCreatedWorker, '#perform' do
- let_it_be(:issue) { create(:issue) }
-
- let(:namespace) { issue.project.namespace }
-
- it_behaves_like 'records an onboarding progress action', :issue_created do
- subject { described_class.new.perform(namespace.id) }
- end
-
- it_behaves_like 'does not record an onboarding progress action' do
- subject { described_class.new.perform(nil) }
- end
-
- it_behaves_like 'an idempotent worker' do
- let(:job_args) { [namespace.id] }
-
- it 'sets the onboarding progress action' do
- Onboarding::Progress.onboard(namespace)
-
- subject
-
- expect(Onboarding::Progress.completed?(namespace, :issue_created)).to eq(true)
- end
- end
-end