method

html_document

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActionDispatch::Assertions
html_document() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/testing/assertions.rb, line 14
    def html_document
      @html_document ||= if @response.content_type.to_s =~ /xml\z/
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end
Register or log in to add new notes.