require 'test_helper'
class TestMatchers < Test::Unit::TestCase
include TestXml::Matchers
def test_match
actual = <<-XML
2
XML
assert match_xml?(actual, '')
assert !match_xml?(actual, '')
end
def test_match_with_values
actual = <<-XML
1
2
XML
assert match_xml?(actual, '1', true)
assert !match_xml?(actual, '2', true)
end
end