Sha256: d875a80828488eb09e6fef49f14210a4923223a8f13ee3d863278cc0dcfcea96
Contents?: true
Size: 598 Bytes
Versions: 18
Compression:
Stored size: 598 Bytes
Contents
describe Spotlight::SolrDocumentSidecar, type: :model do let(:exhibit) { FactoryBot.create(:exhibit) } before do allow(subject).to receive_messages exhibit: exhibit allow(subject).to receive_messages document: SolrDocument.new(id: 'doc_id') end describe '#to_solr' do before do subject.data = { 'a_tesim' => 1, 'b_tesim' => 2, 'c_tesim' => 3 } end its(:to_solr) { should include id: 'doc_id' } its(:to_solr) { should include "exhibit_#{exhibit.slug}_public_bsi".to_sym => true } its(:to_solr) { should include 'a_tesim', 'b_tesim', 'c_tesim' } end end
Version data entries
18 entries across 18 versions & 1 rubygems