Module: EquivalentXml::RSpecMatchers
- Defined in:
- lib/equivalent-xml/rspec_matchers.rb
Instance Method Summary collapse
-
#be_equivalent_to(expected) ⇒ Object
Determine if the receiver is equivalent to the argument as defined in README.rdoc and EquivalentXml.equivalent?.
Instance Method Details
#be_equivalent_to(expected) ⇒ Object
Determine if the receiver is equivalent to the argument as defined in README.rdoc and 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")
26 27 28 29 |
# 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 |