diff options
Diffstat (limited to 'spec/migrations/20211101222614_consume_remaining_user_namespace_jobs_spec.rb')
-rw-r--r-- | spec/migrations/20211101222614_consume_remaining_user_namespace_jobs_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/migrations/20211101222614_consume_remaining_user_namespace_jobs_spec.rb b/spec/migrations/20211101222614_consume_remaining_user_namespace_jobs_spec.rb deleted file mode 100644 index 1688ebf7cb1..00000000000 --- a/spec/migrations/20211101222614_consume_remaining_user_namespace_jobs_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' -require_migration! - -RSpec.describe ConsumeRemainingUserNamespaceJobs, feature_category: :subgroups do - let(:namespaces) { table(:namespaces) } - let!(:namespace) { namespaces.create!(name: 'gitlab', path: 'gitlab-org', type: nil) } - - context 'when Namespaces with nil `type` still exist' do - it 'steals sidekiq jobs from BackfillUserNamespace background migration' do - expect(Gitlab::BackgroundMigration).to receive(:steal).with('BackfillUserNamespace') - - migrate! - end - - it 'migrates namespaces without type' do - expect { migrate! }.to change { namespaces.where(type: 'User').count }.from(0).to(1) - end - end -end |