summaryrefslogtreecommitdiff
path: root/spec/workers/bulk_import_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/bulk_import_worker_spec.rb')
-rw-r--r--spec/workers/bulk_import_worker_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/workers/bulk_import_worker_spec.rb b/spec/workers/bulk_import_worker_spec.rb
new file mode 100644
index 00000000000..12783f40528
--- /dev/null
+++ b/spec/workers/bulk_import_worker_spec.rb
@@ -0,0 +1,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