debian-mirror-gitlab/spec/migrations/track_untracked_uploads_spec.rb

16 lines
481 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
require 'spec_helper'
require Rails.root.join('db', 'post_migrate', '20171103140253_track_untracked_uploads')
describe TrackUntrackedUploads, :migration, :sidekiq do
2018-03-27 19:54:05 +05:30
include MigrationsHelpers::TrackUntrackedUploadsHelpers
2018-03-17 18:26:18 +05:30
it 'correctly schedules the follow-up background migration' do
Sidekiq::Testing.fake! do
migrate!
expect(described_class::MIGRATION).to be_scheduled_migration
expect(BackgroundMigrationWorker.jobs.size).to eq(1)
end
end
end