2017-06-02 11:12:36 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-06-29 05:41:19 -04:00
|
|
|
describe BackgroundMigrationWorker, :sidekiq do
|
2017-06-02 11:12:36 -04:00
|
|
|
describe '.perform' do
|
|
|
|
it 'performs a background migration' do
|
2017-06-21 09:48:12 -04:00
|
|
|
expect(Gitlab::BackgroundMigration)
|
|
|
|
.to receive(:perform)
|
|
|
|
.with('Foo', [10, 20])
|
2017-06-02 11:12:36 -04:00
|
|
|
|
|
|
|
described_class.new.perform('Foo', [10, 20])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|