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/hashed_storage/migrator_worker_spec.rb')
-rw-r--r--spec/workers/hashed_storage/migrator_worker_spec.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/workers/hashed_storage/migrator_worker_spec.rb b/spec/workers/hashed_storage/migrator_worker_spec.rb
deleted file mode 100644
index f188928cf92..00000000000
--- a/spec/workers/hashed_storage/migrator_worker_spec.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe HashedStorage::MigratorWorker, feature_category: :source_code_management do
- subject(:worker) { described_class.new }
-
- let(:projects) { create_list(:project, 2, :legacy_storage, :empty_repo) }
- let(:ids) { projects.map(&:id) }
-
- describe '#perform' do
- it 'delegates to MigratorService' do
- expect_next_instance_of(Gitlab::HashedStorage::Migrator) do |instance|
- expect(instance).to receive(:bulk_migrate).with(start: 5, finish: 10)
- end
-
- worker.perform(5, 10)
- end
-
- it 'migrates projects in the specified range', :sidekiq_might_not_need_inline do
- perform_enqueued_jobs do
- worker.perform(ids.min, ids.max)
- end
-
- projects.each do |project|
- expect(project.reload.hashed_storage?(:attachments)).to be_truthy
- end
- end
- end
-end