spec/datacite_utils_spec.rb in bolognese-0.9.76 vs spec/datacite_utils_spec.rb in bolognese-0.9.77
- old
+ new
@@ -120,19 +120,19 @@
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",
- "__content__"=>"https://doi.org/10.5061/dryad.8515/1"},
+ "__content__"=>"10.5061/dryad.8515/1"},
{"relatedIdentifierType"=>"DOI",
"relationType"=>"HasPart",
- "__content__"=>"https://doi.org/10.5061/dryad.8515/2"},
+ "__content__"=>"10.5061/dryad.8515/2"},
{"relatedIdentifierType"=>"DOI",
"relationType"=>"IsReferencedBy",
- "__content__"=>"https://doi.org/10.1371/journal.ppat.1000446"},
+ "__content__"=>"10.1371/journal.ppat.1000446"},
{"relatedIdentifierType"=>"DOI",
"relationType"=>"IsSupplementTo",
- "__content__"=>"https://doi.org/10.1371/journal.ppat.1000446"}])
+ "__content__"=>"10.1371/journal.ppat.1000446"}])
end
end
context "insert_rights_list" do
it "insert" do