Skip to content

Instantly share code, notes, and snippets.

@awead
Created September 6, 2013 19:59
Show Gist options
  • Save awead/6469122 to your computer and use it in GitHub Desktop.
Save awead/6469122 to your computer and use it in GitHub Desktop.
Failures:
1) OM::XML::Terminology.to_xml should put terminology details into the xml
Failure/Error: xml = @terminology.to_xml
OM::XML::Terminology::BadPointerError:
The mods_title proxy term points to [:mods, :title_info, :main_title] but that term doesn't exist.
# ./lib/om/xml/named_term_proxy.rb:31:in `proxied_term'
# ./lib/om/xml/named_term_proxy.rb:60:in `method_missing'
# ./lib/om/xml/term.rb:284:in `block in to_xml'
# ./lib/om/xml/term.rb:284:in `each'
# ./lib/om/xml/term.rb:284:in `to_xml'
# ./lib/om/xml/terminology.rb:281:in `block in to_xml'
# ./lib/om/xml/terminology.rb:281:in `each'
# ./lib/om/xml/terminology.rb:281:in `to_xml'
# ./spec/unit/xml_serialization_spec.rb:9:in `block (2 levels) in <top (required)>'
2) OM::XML::Term.to_xml should capture root term info
Failure/Error: xml = @terminology.root_terms.first.to_xml
OM::XML::Terminology::BadPointerError:
The mods_title proxy term points to [:mods, :title_info, :main_title] but that term doesn't exist.
# ./lib/om/xml/named_term_proxy.rb:31:in `proxied_term'
# ./lib/om/xml/named_term_proxy.rb:60:in `method_missing'
# ./lib/om/xml/term.rb:284:in `block in to_xml'
# ./lib/om/xml/term.rb:284:in `each'
# ./lib/om/xml/term.rb:284:in `to_xml'
# ./spec/unit/xml_serialization_spec.rb:43:in `block (2 levels) in <top (required)>'
Finished in 1.45 seconds
353 examples, 2 failures, 26 pending
Failed examples:
rspec ./spec/unit/xml_serialization_spec.rb:7 # OM::XML::Terminology.to_xml should put terminology details into the xml
rspec ./spec/unit/xml_serialization_spec.rb:42 # OM::XML::Term.to_xml should capture root term info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment