spec/readers/ris_reader_spec.rb in bolognese-1.0.3 vs spec/readers/ris_reader_spec.rb in bolognese-1.0.4
- old
+ new
@@ -34,12 +34,12 @@
expect(subject.creator.length).to eq(5)
expect(subject.creator.first).to eq("type"=>"Person",
"name"=>"Martial Sankar",
"givenName"=>"Martial",
"familyName"=>"Sankar")
- expect(subject.title).to eq("Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth")
- expect(subject.description["text"]).to start_with("Among various advantages, their small size makes model organisms preferred subjects of investigation.")
+ expect(subject.title).to eq([{"text"=>"Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"}])
+ expect(subject.description.first["text"]).to start_with("Among various advantages, their small size makes model organisms preferred subjects of investigation.")
expect(subject.dates).to eq([{"date"=>"2014", "date_type"=>"Issued"}])
expect(subject.publication_year).to eq("2014")
expect(subject.related_identifiers).to eq([{"id"=>"2050084X", "related_identifier_type"=>"ISSN", "relation_type"=>"IsPartOf", "title"=>"eLife", "type"=>"Periodical"}])
expect(subject.periodical).to eq("id"=>"2050084X", "title"=>"eLife", "type"=>"Periodical")
end
@@ -51,11 +51,11 @@
expect(subject.valid?).to be false
expect(subject.state).to eq("not_found")
expect(subject.identifier).to eq("https://doi.org/10.7554/elife.01567")
expect(subject.types).to eq("citeproc"=>"misc", "resource_type_general"=>"Text", "ris"=>"THES", "type"=>"Thesis")
expect(subject.creator).to eq("type"=>"Person", "name"=>"Y. Toparlar", "givenName"=>"Y.", "familyName"=>"Toparlar")
- expect(subject.title).to eq("A multiscale analysis of the urban heat island effect")
- expect(subject.description["text"]).to start_with("Designing the climates of cities")
+ expect(subject.title).to eq([{"text"=>"A multiscale analysis of the urban heat island effect"}])
+ expect(subject.description.first["text"]).to start_with("Designing the climates of cities")
expect(subject.dates).to eq([{"date"=>"2018-04-25", "date_type"=>"Issued"}, {"date"=>"2018-04-25", "date_type"=>"Created"}])
expect(subject.publication_year).to eq("2018")
end
end
end