blob: b946f816f3b5d6719f52baef3a0d2b99b52ad297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe EnsureMergeRequestMetricsIdBigintBackfillIsFinishedForSelfHosts, feature_category: :database do
describe '#up' do
let(:migration_arguments) do
{
job_class_name: 'CopyColumnUsingBackgroundMigrationJob',
table_name: 'merge_request_metrics',
column_name: 'id',
job_arguments: [['id'], ['id_convert_to_bigint']]
}
end
it 'ensures the migration is completed' do
expect_next_instance_of(described_class) do |instance|
expect(instance).to receive(:ensure_batched_background_migration_is_finished).with(migration_arguments)
end
migrate!
end
end
end
|