spec/datacite_utils_spec.rb in bolognese-0.9.11 vs spec/datacite_utils_spec.rb in bolognese-0.9.13
- old
+ new
@@ -121,15 +121,18 @@
it "insert" do
xml = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') { |xml| subject.insert_related_identifiers(xml) }.to_xml
response = Maremma.from_xml(xml)
expect(response.dig("relatedIdentifiers", "relatedIdentifier")).to eq([{"relatedIdentifierType"=>"DOI",
"relationType"=>"HasPart",
+ "resourceTypeGeneral"=>"Other",
"__content__"=>"https://doi.org/10.5061/dryad.8515/1"},
{"relatedIdentifierType"=>"DOI",
"relationType"=>"HasPart",
+ "resourceTypeGeneral"=>"Other",
"__content__"=>"https://doi.org/10.5061/dryad.8515/2"},
{"relatedIdentifierType"=>"DOI",
"relationType"=>"IsReferencedBy",
+ "resourceTypeGeneral"=>"Other",
"__content__"=>"https://doi.org/10.1371/journal.ppat.1000446"}])
end
end
context "insert_rights_list" do