spec/berkeley_library/util/ods/xml/office/document_content_spec.rb
# TODO: move to some kind of helper & share w/table_spec
move to some kind of helper & share w/table_spec
move to some kind of helper & share w / table_spec
def doc_content_xml
              xml_str = content.to_xml
              rexml_doc = REXML::Document.new(xml_str)
              rexml_doc.root
            end
def doc_content_xml xml_str = content . to_xml rexml_doc = REXML :: Document . new ( xml_str ) rexml_doc . root end
TODO: move to some kind of helper & share w/table_spec
TODO : move to some kind of helper & share w / table_spec
# File.open("tmp/content-#{Time.now.to_i}.xml", 'wb') { |f| f.write(xml_str) }