Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230523101514_finalize_user_type_migration_spec.rb « migrations « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 01c05c38098d74341b0da59d8b6adb6d6aa22ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'
require_migration!

RSpec.describe FinalizeUserTypeMigration, feature_category: :devops_reports do
  it 'finalizes MigrateHumanUserType migration' do
    expect_next_instance_of(described_class) do |instance|
      expect(instance).to receive(:ensure_batched_background_migration_is_finished).with(
        job_class_name: 'MigrateHumanUserType',
        table_name: :users,
        column_name: :id,
        job_arguments: []
      )
    end

    migrate!
  end
end