test/test_helper.rb
def load_mock_content(entry_name)
        root = Pathname.new(File.dirname(__FILE__))
        xml_path = root.join('fixtures', 'xml', 'mock_document', entry_name)
        Nokogiri::XML(File.read(xml_path))
      end
# Loads and parses individual files to build the mock document
Loads and parses individual files to build the mock document
Loads and parses individual files to build the mock document
def load_mock_content(entry_name)
        root = Pathname.new(File.dirname(__FILE__))
        xml_path = root.join('fixtures', 'xml', 'mock_document', entry_name)
        Nokogiri::XML(File.read(xml_path))
      end
def load_mock_content ( entry_name ) root = Pathname . new ( File . dirname ( __FILE__ ) ) xml_path = root . join ( 'fixtures' , 'xml' , 'mock_document' , entry_name ) Nokogiri :: XML ( File . read ( xml_path ) ) end
Loads and parses individual files to build the mock document
Loads and parses individual files to build the mock document
entry_name