spec/readers/bibtex_reader_spec.rb in bolognese-1.0.26 vs spec/readers/bibtex_reader_spec.rb in bolognese-1.0.27

- old
+ new

@@ -29,12 +29,12 @@ it "Crossref DOI" do expect(subject.valid?).to be true expect(subject.identifier).to eq("https://doi.org/10.7554/elife.01567") expect(subject.types).to eq("bibtex"=>"article", "citeproc"=>"article-journal", "resourceTypeGeneral"=>"Text", "resourceType"=>"JournalArticle", "ris"=>"JOUR", "schemaOrg"=>"ScholarlyArticle") expect(subject.url).to eq("http://elifesciences.org/lookup/doi/10.7554/eLife.01567") - expect(subject.creator.length).to eq(5) - expect(subject.creator.first).to eq("type"=>"Person", "name"=>"Martial Sankar", "givenName"=>"Martial", "familyName"=>"Sankar") + expect(subject.creators.length).to eq(5) + expect(subject.creators.first).to eq("type"=>"Person", "name"=>"Martial Sankar", "givenName"=>"Martial", "familyName"=>"Sankar") expect(subject.titles).to eq([{"title"=>"Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"}]) expect(subject.descriptions.first["description"]).to start_with("Among various advantages, their small size makes model organisms preferred subjects of investigation.") expect(subject.rights_list.first["rightsUri"]).to eq("http://creativecommons.org/licenses/by/3.0/") expect(subject.dates).to eq([{"date"=>"2014", "dateType"=>"Issued"}]) expect(subject.publication_year).to eq("2014") @@ -47,10 +47,10 @@ 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.types).to eq("bibtex"=>"phdthesis", "citeproc"=>"thesis", "resourceTypeGeneral"=>"Text", "resourceType"=>"Dissertation", "ris"=>"THES", "schemaOrg"=>"Thesis") - expect(subject.creator).to eq([{"type"=>"Person", "name"=>"Y. Toparlar", "givenName"=>"Y.", "familyName"=>"Toparlar"}]) + expect(subject.creators).to eq([{"type"=>"Person", "name"=>"Y. Toparlar", "givenName"=>"Y.", "familyName"=>"Toparlar"}]) expect(subject.titles).to eq([{"title"=>"A multiscale analysis of the urban heat island effect: from city averaged temperatures to the energy demand of individual buildings"}]) expect(subject.descriptions.first["description"]).to start_with("Designing the climates of cities") expect(subject.dates).to eq([{"date"=>"2018", "dateType"=>"Issued"}]) expect(subject.publication_year).to eq("2018") end