method

html_document

html_document()
public

No documentation available.

# File actionpack/lib/action_dispatch/testing/assertions.rb, line 14
    def html_document
      @html_document ||= if @response.content_type =~ /xml$/
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end