spec/datacite_utils_spec.rb in bolognese-1.5.2 vs spec/datacite_utils_spec.rb in bolognese-1.5.3

- old
+ new

@@ -112,9 +112,17 @@ response = Maremma.from_xml(xml) expect(response.fetch("version", nil)).to eq("1") end end + context "insert_language" do + it "insert" do + xml = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') { |xml| subject.insert_language(xml) }.to_xml + response = Maremma.from_xml(xml) + expect(response.fetch("language", nil)).to eq("en") + end + end + context "insert_related_identifiers" do it "related_identifier" do expect(subject.related_identifiers.length).to eq(6) expect(subject.related_identifiers.first).to eq("relatedIdentifier"=>"10.5061/dryad.8515/1", "relatedIdentifierType"=>"DOI", "relationType"=>"HasPart") end