spec/lib/spotlight/dor/indexer_spec.rb in spotlight-dor-resources-1.0.0 vs spec/lib/spotlight/dor/indexer_spec.rb in spotlight-dor-resources-1.0.1
- old
+ new
@@ -139,19 +139,21 @@
# e.g. from https://purl.stanford.edu/vw282gv1740
Nokogiri::XML <<-EOF
<mods xmlns="#{Mods::MODS_NS}">
<note displayLabel="Donor tags">Knowledge Systems Laboratory</note>
<note displayLabel="Donor tags">medical applications</note>
+ <note displayLabel="Donor tags">medical Applications (second word CAPPED)</note>
<note displayLabel="Donor tags">Publishing</note>
<note displayLabel="Donor tags">Stanford</note>
<note displayLabel="Donor tags">Stanford Computer Science Department</note>
</mods>
EOF
end
it 'extracts the donor tags' do
expect(solr_doc['donor_tags_ssim']).to contain_exactly 'Knowledge Systems Laboratory',
- 'medical applications',
+ 'Medical applications',
+ 'Medical Applications (second word CAPPED)',
'Publishing',
'Stanford',
'Stanford Computer Science Department'
end
end