debian-mirror-gitlab/spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb
2021-09-04 01:27:46 +05:30

15 lines
385 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
require_migration!('schedule_migration_to_hashed_storage')
RSpec.describe ScheduleMigrationToHashedStorage, :sidekiq do
describe '#up' do
it 'schedules background migration job' do
Sidekiq::Testing.fake! do
expect { migrate! }.to change { BackgroundMigrationWorker.jobs.size }.by(1)
end
end
end
end