summaryrefslogtreecommitdiff
path: root/spec/migrations/20200915044225_schedule_migration_to_hashed_storage_spec.rb
blob: 69f7525d2655157e116222fdc10499d98b90cb04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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