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