kucaahbe / rspec-html-matchers

Old school have_tag, with_tag(and more) matchers for rspec 3 (Nokogiri powered)
http://rubygems.org/gems/rspec-html-matchers
MIT License
199 stars 90 forks source link

Support for XML parsing #67

Closed bookwyrm closed 6 years ago

bookwyrm commented 6 years ago

HaveTag is hardcoded to treat input as HTML (case insensitive) and therefore doesn't provide good testing of XML (case sensitive).

expect("<Foo>bar</Foo>").to have_tag('Foo')

This test fails when it should pass.

bookwyrm commented 6 years ago

Closing based on conversation in PR #66