To make debugging a little easier, the output of the parsed document can be loaded into your operating system’s default web browser by calling document.open
.
it 'has complex HTML' do
get '/my/path'
document.open
end
Alternatively, the document can be printed to stdout
by calling puts document
.
it 'has complex HTML' do
get '/my/path'
puts document
end