Module: TestXml::TestUnit
Instance Method Summary collapse
- #assert_match_xml(xml, message = "") ⇒ Object
- #assert_match_xml_structure(xml, message = "") ⇒ Object
- #assert_not_match_xml(xml, message = "") ⇒ Object
Methods included from Matchers
Instance Method Details
#assert_match_xml(xml, message = "") ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/test_xml/test_unit.rb', line 5 def assert_match_xml(xml, = "") pattern = yield = (, <<-EOT, xml, pattern) The following xml: ? does not match with: ? EOT assert_block() do match_xml?(xml, yield, true) end end |
#assert_match_xml_structure(xml, message = "") ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/test_xml/test_unit.rb', line 18 def assert_match_xml_structure(xml, = "") pattern = yield = (, <<-EOT, xml, pattern) The following xml: ? does not match with structure of: ? EOT assert_block() do match_xml?(xml, yield) end end |
#assert_not_match_xml(xml, message = "") ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/test_xml/test_unit.rb', line 31 def assert_not_match_xml(xml, = "") pattern = yield = (, <<-EOT, xml, pattern) The following xml: ? matches with: ? EOT assert_block() do !match_xml?(xml, yield, true) end end |