gitlab-org--gitlab-foss/spec/workers/background_migration_worker_spec.rb
2017-12-05 11:59:39 +01:00

13 lines
313 B
Ruby

require 'spec_helper'
describe BackgroundMigrationWorker, :sidekiq do
describe '.perform' do
it 'performs a background migration' do
expect(Gitlab::BackgroundMigration)
.to receive(:perform)
.with('Foo', [10, 20])
described_class.new.perform('Foo', [10, 20])
end
end
end