gitlab-org--gitlab-foss/spec/workers/background_migration_worker_spec.rb
Yorick Peterse d83ee2bbd1
Add the ability to perform background migrations
Background migrations can be used to perform long running data
migrations without these blocking a deployment procedure.

See MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11854 for
more information.
2017-06-12 13:24:04 +02:00

13 lines
303 B
Ruby

require 'spec_helper'
describe BackgroundMigrationWorker 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