base_importer_spec.rb 367 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Importer::BaseImporter do
  4. describe 'import!' do
  5. let(:pool) { Concurrent::FixedThreadPool.new(5) }
  6. let(:importer) { described_class.new(batch_size: 123, executor: pool) }
  7. it 'raises an error' do
  8. expect { importer.import! }.to raise_error(NotImplementedError)
  9. end
  10. end
  11. end