spec/readers/codemeta_reader_spec.rb in briard-2.7.1 vs spec/readers/codemeta_reader_spec.rb in briard-2.8.0
- old
+ new
@@ -69,13 +69,12 @@
'nameIdentifiers' =>
[{ 'nameIdentifier' => 'https://orcid.org/0000-0002-2192-403X',
'nameIdentifierScheme' => 'ORCID',
'schemeUri' => 'https://orcid.org' }],
'nameType' => 'Personal' },
- { 'name' => 'University Of California, Santa Barbara',
- 'nameType' => 'Organizational',
- 'nameIdentifiers' => [], 'affiliation' => [] }])
+ { 'name' => 'University of California, Santa Barbara',
+ 'nameType' => 'Organizational' }])
expect(subject.titles).to eq([{ 'title' => 'R Interface to the DataONE REST API' }])
expect(subject.descriptions.first['description']).to start_with('Provides read and write access to data and metadata')
expect(subject.subjects).to eq([{ 'subject' => 'data sharing' }, { 'subject' => 'data repository' },
{ 'subject' => 'dataone' }])
expect(subject.version_info).to eq('2.0.0')
@@ -130,10 +129,10 @@
expect(subject.url).to eq('https://github.com/datacite/metadata-reports')
expect(subject.types).to eq('bibtex' => 'misc', 'citeproc' => 'article-journal',
'resourceTypeGeneral' => 'Software', 'ris' => 'COMP', 'schemaOrg' => 'SoftwareSourceCode')
expect(subject.creators.size).to eq(4)
expect(subject.creators.last).to eq('familyName' => 'Nielsen', 'givenName' => 'Lars Holm',
- 'name' => 'Nielsen, Lars Holm', 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0001-8135-3489', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'nameType' => 'Personal', 'affiliation' => [])
+ 'name' => 'Nielsen, Lars Holm', 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0001-8135-3489', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'nameType' => 'Personal')
expect(subject.titles).to eq([{ 'title' => 'DOI Registrations for Software' }])
expect(subject.descriptions.first['description']).to start_with('Analysis of DataCite DOIs registered for software')
expect(subject.subjects).to eq([{ 'subject' => 'doi' }, { 'subject' => 'software' },
{ 'subject' => 'codemeta' }])
expect(subject.dates).to eq([{ 'date' => '2018-05-17', 'dateType' => 'Issued' },