diff options
Diffstat (limited to 'spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb')
-rw-r--r-- | spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb b/spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb new file mode 100644 index 00000000000..20ba2fbccea --- /dev/null +++ b/spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +require 'spec_helper' +require Rails.root.join('db', 'post_migrate', '20200915044225_schedule_migration_to_hashed_storage.rb') + +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 |