Sha256: 2aa50c249f7fd61837b555b6be7f973be16eed6709e0fa9c2ab2491f6a61a5e5

Contents?: true

Size: 645 Bytes

Versions: 93

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true

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.end_with?("xml")
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end
  end
end

Version data entries

93 entries across 93 versions & 4 rubygems

Version Path
actionpack-5.2.8.1 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.8 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.7.1 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.7 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.6.3 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.6.2 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.6.1 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.6 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.6 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.5 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.5 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.4 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.3 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.2 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.1 lib/action_dispatch/testing/assertions.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4 lib/action_dispatch/testing/assertions.rb
actionpack-5.2.4.rc1 lib/action_dispatch/testing/assertions.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/testing/assertions.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/testing/assertions.rb