Sha256: 2e422294e1fbb93139dcb3122036110ec4be6e25a0b382673c5d5f4513358ad8
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true require "quails-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 Quails::Dom::Testing::Assertions def html_document @html_document ||= if @response.content_type.to_s.end_with?("xml") Nokogiri::XML::Document.parse(@response.body) else Nokogiri::HTML::Document.parse(@response.body) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | actionpack/lib/action_dispatch/testing/assertions.rb |