Sha256: 925cf8bb6cb1b118bc09e83ac758aaadaec4877e2a166235f7188fe4c0164e06
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
module TestXml module TestUnit include TestXml::Matchers def assert_match_xml(xml, message = "") pattern = yield full_message = build_message(message, <<-EOT, xml, pattern) The following xml: ? does not match with: ? EOT assert_block(full_message) do match_xml?(xml, yield, true) end end def assert_match_xml_structure(xml, message = "") pattern = yield full_message = build_message(message, <<-EOT, xml, pattern) The following xml: ? does not match with structure of: ? EOT assert_block(full_message) do match_xml?(xml, yield) end end def assert_not_match_xml(xml, message = "") pattern = yield full_message = build_message(message, <<-EOT, xml, pattern) The following xml: ? matches with: ? EOT assert_block(full_message) do !match_xml?(xml, yield, true) end end end end class Test::Unit::TestCase include TestXml::TestUnit end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_xml-0.0.1 | lib/test_xml/test_unit.rb |