spec/lib/dpla_spec.rb in dpla-map-4.0.0.0.pre.12 vs spec/lib/dpla_spec.rb in dpla-map-4.0.0.0.pre.13

- old
+ new

@@ -10,10 +10,14 @@ it 'has an edm:hasType that is a DPLA::MAP::Controlled::Genre' do expect(subject.genre).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::Genre)) end + it 'has a dc:date that is a DPLA::MAP::TimeSpan' do + expect(subject.date).to contain_exactly(an_instance_of(DPLA::MAP::TimeSpan)) + end + it 'has a dcterms:language that is a DPLA::MAP::Controlled::Language' do expect(subject.language).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::Language)) end it 'has a dcterms:subject that is a DPLA::MAP::Concept' do @@ -29,9 +33,11 @@ subject { build(:aggregation) } it 'has nested values' do expect(subject.sourceResource.first.subject.first.prefLabel) .to contain_exactly('Gay activists') + expect(subject.sourceResource.first.date.first.providedLabel) + .to contain_exactly('1969.') end context 'when built from parsed graph' do let(:parsed) do lang = DPLA::MAP::Controlled::Language.new