spec/writers/datacite_writer_spec.rb in bolognese-1.1.5 vs spec/writers/datacite_writer_spec.rb in bolognese-1.1.6
- old
+ new
@@ -309,12 +309,10 @@
subject = Bolognese::Metadata.new(input: input, from: "crossref")
subject.doi = "123"
subject.titles = "Data from: Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth"
subject.types = { "schemaOrg" => "Dataset", "resourceTypeGeneral" => "Dataset" }
expect(subject.doi).to eq("123")
- expect(subject.valid?).to be false
- expect(subject.errors.first).to start_with("3:0: ERROR: Element '{http://datacite.org/schema/kernel-4}identifier'")
- datacite = Maremma.from_xml(subject.datacite).fetch("resource", {})
+ expect(subject.valid?).to be true
end
it "from schema_org gtex" do
input = fixture_path + "schema_org_gtex.json"
subject = Bolognese::Metadata.new(input: input, from: "schema_org")