Module: XmlSpec::Helpers

Extended by:
Helpers
Included in:
Helpers, Matchers::BeXmlEql, Matchers::IncludeXml
Defined in:
lib/xml_spec/helpers.rb

Instance Method Summary collapse

Instance Method Details

#parse_xml(subject, pattern) ⇒ Object



7
8
9
# File 'lib/xml_spec/helpers.rb', line 7

def parse_xml(subject, pattern)
  [Nokogiri::XML.parse(subject).root, Nokogiri::XML.parse(pattern).root]
end