mbklein / equivalent-xml

Easy equivalency tests for Nokogiri and Oga XML
MIT License
94 stars 29 forks source link

contain matcher #32

Open 23tux opened 9 years ago

23tux commented 9 years ago

I think it would be useful, to have something like expect(xml).to contain_xml("<foo>bar</foo>"). With this, you would be able to match a partial xml to a parent document.