Sha256: ddd24adb8ec187ca995bb7c93c6501a8659da3d4640fbd7fd556b3039118c0c3
Contents?: true
Size: 606 Bytes
Versions: 10
Compression:
Stored size: 606 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 === Mime::XML Nokogiri::XML::Document.parse(@response.body) else Nokogiri::HTML::Document.parse(@response.body) end end end end
Version data entries
10 entries across 10 versions & 4 rubygems