RSpec::HTML
RSpec::HTML provides a simple object interface to HTML content.
You can use RSpec::HTML to test any HTML produced by your library or application and it works out of the box with RSpec Rails request specs.
Installation
Add the gem to your Gemfile:
gem 'rspec-html', '~> 0.3.4'
And rebuild your bundle:
$ bundle install
Documentation
See the documentation for full usage guide.