module RSpec::XmlHelpers
Provides a `match_xml` rspec matcher.
Public Class Methods
normalize_xml(xml)
click to toggle source
@param [String<XML>] xml @return [String<XML>] @api private
# File lib/rspec/xml_helpers.rb, line 21 def normalize_xml(xml) XmlFormatter.new.format(xml) end
Public Instance Methods
match_xml(expected)
click to toggle source
@param [String<XML>] expected
# File lib/rspec/xml_helpers.rb, line 12 def match_xml(expected) XmlMatcher.new(expected) end