spec/datacite_utils_spec.rb in bolognese-0.9.19 vs spec/datacite_utils_spec.rb in bolognese-0.9.20
- old
+ new
@@ -111,12 +111,11 @@
end
end
context "insert_related_identifiers" do
it "related_identifier" do
- expect(subject.has_part).to eq([{"id"=>"https://doi.org/10.5061/dryad.8515/1"},
- {"id"=>"https://doi.org/10.5061/dryad.8515/2"}])
- expect(subject.is_referenced_by).to eq("id"=>"https://doi.org/10.1371/journal.ppat.1000446")
+ expect(subject.has_part).to eq([{"type"=>"CreativeWork", "id"=>"https://doi.org/10.5061/dryad.8515/1"}, {"type"=>"CreativeWork", "id"=>"https://doi.org/10.5061/dryad.8515/2"}])
+ expect(subject.is_referenced_by).to eq("type"=>"CreativeWork", "id"=>"https://doi.org/10.1371/journal.ppat.1000446")
end
it "insert" do
xml = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') { |xml| subject.insert_related_identifiers(xml) }.to_xml
response = Maremma.from_xml(xml)