Sha256: 507b62bd994d39edb1be7463f87bb4a90132acd11650f8b151f4ffd1891fb927
Contents?: true
Size: 602 Bytes
Versions: 18
Compression:
Stored size: 602 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 =~ /xml$/ Nokogiri::XML::Document.parse(@response.body) else Nokogiri::HTML::Document.parse(@response.body) end end end end
Version data entries
18 entries across 17 versions & 4 rubygems