summaryrefslogtreecommitdiff
path: root/spec/workers/background_migration_worker_spec.rb
blob: 85939429feb80623611e7ea9420fdd27042e60fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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