module EquivalentXml::RSpecMatchers

Public Instance Methods

be_equivalent_to(expected) click to toggle source

Determine if the receiver is equivalent to the argument as defined in {file:README.rdoc README.rdoc} and {EquivalentXml.equivalent? EquivalentXml.equivalent?}.

node.should be_equivalent_to(other_node)
node.should_not be_equivalent_to(other_node)
node.should be_equivalent_to(other_node).respecting_element_order
node.should be_equivalent_to(other_node).with_whitespace_intact
node.should be_equivalent_to(other_node).respecting_element_order.with_whitespace_intact
node.should be_equivalent_to(other_node).ignoring_content_of("Device > SerialNumber")
# File lib/equivalent-xml/rspec_matchers.rb, line 26
def be_equivalent_to(expected)
  # Placeholder method for documentation purposes; the actual
  # method is defined using RSpec's matcher DSL.
end