otwarchive-symphonyarchive/spec/models/search/pseud_indexer_spec.rb

17 lines
401 B
Ruby
Raw Normal View History

2026-03-11 22:22:11 +00:00
require "spec_helper"
describe PseudIndexer, pseud_search: true do
describe "#index_documents" do
let(:pseud) { create(:pseud) }
let(:indexer) { PseudIndexer.new([pseud.id]) }
context "when a pseud in the batch has no user" do
before { pseud.user.delete }
it "doesn't error" do
expect { indexer.index_documents }.not_to raise_exception
end
end
end
end