spec/berkeley_library/util/ods/xml/table/table_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 find_table_xml(dc_xml = doc_content_xml, table_index = 1)
              body = dc_xml.elements[4]
              expect(body).to be_a(REXML::Element) 
              spreadsheet = body.elements[1]
              expect(spreadsheet).to be_a(REXML::Element) 
              spreadsheet.elements[table_index]
            end
def find_table_xml ( dc_xml = doc_content_xml , table_index = 1 ) body = dc_xml . elements [ 4 ] expect ( body ) . to be_a ( REXML :: Element ) spreadsheet = body . elements [ 1 ] expect ( spreadsheet ) . to be_a ( REXML :: Element ) spreadsheet . elements [ table_index ] end
TODO: move to some kind of helper & share w/table_spec
TODO : move to some kind of helper & share w / table_spec
# just to be sure # just to be sure
dc_xml
<not_specific>
doc_content_xml
<not_specific>
table_index
<not_specific>