Sha256: e4bc41ad333c4a6961e6e22d534b237e04a98aa53bd95be9dfa54799bf32b0e7

Contents?: true

Size: 608 Bytes

Versions: 35

Compression:

Stored size: 608 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\z/
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 4 rubygems

Version Path
actionpack-5.0.7.2 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.7.1 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.7 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.6 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.6.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.5 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.5.rc2 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.5.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.4 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.4.rc1 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.3 lib/action_dispatch/testing/assertions.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionpack-5.0.2/lib/action_dispatch/testing/assertions.rb
actionpack-5.0.2 lib/action_dispatch/testing/assertions.rb
actionpack-5.0.2.rc1 lib/action_dispatch/testing/assertions.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/testing/assertions.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/testing/assertions.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/testing/assertions.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/testing/assertions.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/testing/assertions.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/testing/assertions.rb