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

Version Path
activejob-lock-0.0.2 rails/actionpack/lib/action_dispatch/testing/assertions.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/actionpack-4.2.2/lib/action_dispatch/testing/assertions.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/actionpack-4.2.1/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.2 lib/action_dispatch/testing/assertions.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.1.rc4 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.1.rc3 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.1.rc2 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.1.rc1 lib/action_dispatch/testing/assertions.rb
activejob-lock-0.0.1 rails/actionpack/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0.rc3 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0.rc2 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0.beta3 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0.beta2 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.0.beta1 lib/action_dispatch/testing/assertions.rb