spec/readers/bibtex_reader_spec.rb in bolognese-0.10.9 vs spec/readers/bibtex_reader_spec.rb in bolognese-0.10.10
- old
+ new
@@ -45,11 +45,14 @@
subject = Bolognese::Metadata.new(input: input, doi: doi)
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.bibtex_type).to eq("phdthesis")
+ expect(subject.ris_type).to eq("THES")
+ expect(subject.citeproc_type).to eq("thesis")
expect(subject.type).to eq("Thesis")
expect(subject.resource_type_general).to eq("Text")
+ expect(subject.additional_type).to eq("Dissertation")
expect(subject.author).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: from city averaged temperatures to the energy demand of individual buildings")
expect(subject.description["text"]).to start_with("Designing the climates of cities")
expect(subject.date_published).to eq("2018")
end