You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
395 B

  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe Importer::TagsIndexImporter do
  4. describe 'import!' do
  5. let(:pool) { Concurrent::FixedThreadPool.new(5) }
  6. let(:importer) { described_class.new(batch_size: 123, executor: pool) }
  7. before { Fabricate(:tag) }
  8. it 'indexes relevant tags' do
  9. expect { importer.import! }.to update_index(TagsIndex)
  10. end
  11. end
  12. end