Sha256: 933833898af0b03d49620f71b5949f53ac3768efb962a8e24b79016e05e34df0

Contents?: true

Size: 607 Bytes

Versions: 23

Compression:

Stored size: 607 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.to_s =~ /xml$/
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
actionpack-4.2.11.3 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.11.2 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.11.1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.11 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.10 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.10.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.9 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.9.rc2 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.9.rc1 lib/action_dispatch/testing/assertions.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionpack-4.2.8/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.8 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.8.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.7.1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.7 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.7.rc1 lib/action_dispatch/testing/assertions.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.6/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.6 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.6.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.5.2 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.5.1 lib/action_dispatch/testing/assertions.rb