d83ee2bbd1
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.
13 lines
303 B
Ruby
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
|