Flowdock
method

html_document

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 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 16
    def html_document
      @html_document ||= if @response.media_type&.end_with?("xml")
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end
Register or log in to add new notes.