Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Test that MapSet geoblacklight documents are not suppressed
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed May 31, 2017
1 parent a0c96e9 commit 0035009
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spec/services/discovery/geoblacklight_document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

context 'with a public image work with a mapset parent' do
let(:identifier) { ['ark:/99999/fk44jq866'] }
let(:map_set) { FactoryGirl.build(:map_set_with_image_work, id: 'map-set-1', identifier: identifier) }
let(:map_set) { FactoryGirl.build(:map_set_with_image_work, identifier: identifier) }
let(:visibility) { Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC }

before do
Expand All @@ -103,6 +103,15 @@
expect(document[:suppressed_b]).to eq true
expect(document[:dct_source_sm]).to eq ['princeton-fk44jq866']
end

context 'with the parent map set' do
let(:geo_concern_presenter) { MapSetShowPresenter.new(SolrDocument.new(map_set.to_solr), nil) }

it 'does not return a suppressed document or a source field' do
expect(document[:suppressed_b]).to be_nil
expect(document[:dct_source_sm]).to be_nil
end
end
end
end

Expand Down

0 comments on commit 0035009

Please sign in to comment.