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

Commit

Permalink
Adding test for blank subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Aug 25, 2017
1 parent 237bcca commit 8f15ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/fixtures/lae_migration/folders/0003d/descMetadata
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<info:fedora/puls:0003d> <http://purl.org/dc/terms/publisher> "Museo de la Memoria - Municipalidad de Rosario" .
<info:fedora/puls:0003d> <http://princeton.edu/pulstore/terms/isPartOfSeries> "" .
<info:fedora/puls:0003d> <http://purl.org/dc/terms/subject> "Museums" .
<info:fedora/puls:0003d> <http://purl.org/dc/terms/subject> "" .
<info:fedora/puls:0003d> <http://purl.org/dc/terms/creator> "" .
<info:fedora/puls:0003d> <http://purl.org/dc/terms/contributor> "" .
<info:fedora/puls:0003d> <http://princeton.edu/pulstore/terms/pageCount> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
Expand Down
5 changes: 5 additions & 0 deletions spec/services/ingest_ephemera_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,10 @@
graph << [RDF::URI.new, RDF::Vocab::DC.format, "Flyers"]
expect(subject.lookup(graph, RDF::Vocab::DC.format, "LAE Genres")).to eq([nil])
end
it "handles missing data" do
graph = RDF::Graph.new
graph << [RDF::URI.new, RDF::Vocab::DC.subject, ""]
expect(subject.lookup(graph, RDF::Vocab::DC.subject, nil)).to eq([nil])
end
end
end

0 comments on commit 8f15ad8

Please sign in to comment.