spec/datacite_utils_spec.rb in bolognese-1.6.3 vs spec/datacite_utils_spec.rb in bolognese-1.6.4

- old
+ new

@@ -157,10 +157,14 @@ context "insert_rights_list" do it "insert" do xml = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') { |xml| subject.insert_rights_list(xml) }.to_xml response = Maremma.from_xml(xml) - expect(response.dig("rightsList", "rights")).to eq("rightsURI"=>"http://creativecommons.org/publicdomain/zero/1.0") + expect(response.dig("rightsList", "rights")).to eq("__content__" => "Creative Commons Zero v1.0 Universal", + "rightsIdentifier" => "CC0-1.0", + "rightsIdentifierScheme" => "SPDX", + "rightsURI" => "https://creativecommons.org/publicdomain/zero/1.0/legalcode", + "schemeURI" => "https://spdx.org/licenses/") end end context "insert_descriptions" do it "insert" do