Sha256: 933833898af0b03d49620f71b5949f53ac3768efb962a8e24b79016e05e34df0
Contents?: true
Size: 607 Bytes
Versions: 23
Compression:
Stored size: 607 Bytes
Contents
require 'rails-dom-testing' module ActionDispatch module Assertions autoload :ResponseAssertions, 'action_dispatch/testing/assertions/response' autoload :RoutingAssertions, 'action_dispatch/testing/assertions/routing' extend ActiveSupport::Concern include ResponseAssertions include RoutingAssertions include Rails::Dom::Testing::Assertions def html_document @html_document ||= if @response.content_type.to_s =~ /xml$/ Nokogiri::XML::Document.parse(@response.body) else Nokogiri::HTML::Document.parse(@response.body) end end end end
Version data entries
23 entries across 23 versions & 3 rubygems