Old school have_tag, with_tag(and more) matchers for rspec 3 (Nokogiri powered)
The rspec-html-matchers gem provides RSpec matchers for testing complex HTML output. It is designed to test HTML elements and attributes with developer-friendly error messages. The gem is built on top of Nokogiri and has support for Capybara testing framework. It offers a syntax similar to the have_tag matcher from RSpec. Installation is simple and usage examples are provided for matching tags, content, and form inputs.