summaryrefslogtreecommitdiff
path: root/spec/workers/bulk_import_worker_spec.rb
blob: 12783f40528f41b3efb9dddab0a8a7b9002babe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#  frozen_string_literal: true

require 'spec_helper'

RSpec.describe BulkImportWorker do
  describe '#perform' do
    it 'executes Group Importer' do
      bulk_import_id = 1

      expect(BulkImports::Importers::GroupsImporter)
        .to receive(:new).with(bulk_import_id).and_return(double(execute: true))

      described_class.new.perform(bulk_import_id)
    end
  end
end