Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created September 20, 2013 15:11
Show Gist options
  • Save jcoyne/6639002 to your computer and use it in GitHub Desktop.
Save jcoyne/6639002 to your computer and use it in GitHub Desktop.
Failure/Error: subject.content.should be_equivalent_to expected_xml
expected:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:mads="http://www.loc.gov/mads/rdf/v1#">
<mads:ComplexSubject rdf:about="info:fedora/foo">
<mads:elementList rdf:parseType="Collection">
<rdf:Description rdf:about="http://library.ucsd.edu/ark:/20775/bbXXXXXXX6"/>
<mads:TopicElement>
<mads:elementValue>Relations with Mexican Americans</mads:elementValue>
</mads:TopicElement>
<rdf:Description rdf:about="http://library.ucsd.edu/ark:/20775/bbXXXXXXX4"/>
<mads:TemporalElement>
<mads:elementValue>1900s</mads:elementValue>
</mads:TemporalElement>
</mads:elementList>
</mads:ComplexSubject>
</rdf:RDF>
got:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns0="http://www.loc.gov/mads/rdf/v1#" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<ns0:ComplexSubject rdf:about="info:fedora/foo">
<ns0:elementList>
<rdf:Description>
<ns1:first rdf:resource="http://library.ucsd.edu/ark:/20775/bbXXXXXXX6"/>
<ns1:rest rdf:nodeID="g42360100"/>
<ns1:rest rdf:parseType="Collection"/>
</rdf:Description>
</ns0:elementList>
</ns0:ComplexSubject>
<rdf:Description rdf:nodeID="g42360100">
<ns1:first>
<ns0:TopicElement>
<ns0:elementValue>Relations with Mexican Americans</ns0:elementValue>
</ns0:TopicElement>
</ns1:first>
<ns1:rest>
<rdf:Description>
<ns1:first rdf:resource="http://library.ucsd.edu/ark:/20775/bbXXXXXXX4"/>
<ns1:rest rdf:parseType="Collection">
<ns0:TemporalElement>
<ns0:elementValue>1900s</ns0:elementValue>
</ns0:TemporalElement>
</ns1:rest>
<ns1:rest rdf:parseType="Collection"/>
</rdf:Description>
</ns1:rest>
<ns1:rest rdf:parseType="Collection"/>
</rdf:Description>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment