debug_html
debug_html
can be used to save HTML to a temporary file and open it in a web browser for inspection. It's like save_and_open_page
in capybara.
Usage
Put this somewhere in your code to open the default web browser to render the HTML code.
require 'debug_html'
DebugHTML.save_and_open(html)
You could also do something else instead of opening a web browser.
require 'debug_html'
path = DebugHTML.save(html)