2019-09-04 21:01:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
require Rails.root.join('db', 'post_migrate', '20190402224749_schedule_merge_request_assignees_migration_progress_check.rb')
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe ScheduleMergeRequestAssigneesMigrationProgressCheck do
|
2019-09-04 21:01:54 +05:30
|
|
|
describe '#up' do
|
|
|
|
it 'schedules MergeRequestAssigneesMigrationProgressCheck background job' do
|
|
|
|
expect(BackgroundMigrationWorker).to receive(:perform_async)
|
|
|
|
.with(described_class::MIGRATION)
|
|
|
|
.and_call_original
|
|
|
|
|
|
|
|
subject.up
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|