Sha256: 6cd41705185184cc6b57842fd2cb9ceae1061d6661cbe7d0430a422054a9b11d
Contents?: true
Size: 932 Bytes
Versions: 3
Compression:
Stored size: 932 Bytes
Contents
require 'spec_helper' RSpec.describe NewspaperWorks::BlacklightIiifSearch::SearchBehavior do let(:parent_id) { 'abc123' } let(:search_params) do { q: 'foo', solr_document_id: parent_id } end let(:controller) { CatalogController.new } let(:blacklight_config) { controller.blacklight_config } let(:parent_document) do SolrDocument.new('id' => parent_id, 'has_model_ssim' => ['NewspaperIssue']) end let(:iiif_search) do BlacklightIiifSearch::IiifSearch.new(search_params, blacklight_config.iiif_search, parent_document) end describe '#object_relation_solr_params' do subject { iiif_search.object_relation_solr_params } it 'returns a hash with the correct content' do expect(subject.keys).to include('issue_id_ssi') expect(subject.values).to include(parent_id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems