a02fed20d0
into MigrationsHelpers namespace just for organization.
15 lines
481 B
Ruby
15 lines
481 B
Ruby
require 'spec_helper'
|
|
require Rails.root.join('db', 'post_migrate', '20171103140253_track_untracked_uploads')
|
|
|
|
describe TrackUntrackedUploads, :migration, :sidekiq do
|
|
include MigrationsHelpers::TrackUntrackedUploadsHelpers
|
|
|
|
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
|