Sha256: ddd24adb8ec187ca995bb7c93c6501a8659da3d4640fbd7fd556b3039118c0c3

Contents?: true

Size: 606 Bytes

Versions: 10

Compression:

Stored size: 606 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 === Mime::XML
        Nokogiri::XML::Document.parse(@response.body)
      else
        Nokogiri::HTML::Document.parse(@response.body)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/assertions.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/assertions.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/assertions.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.4 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.4.rc1 lib/action_dispatch/testing/assertions.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/actionpack-4.2.3/lib/action_dispatch/testing/assertions.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/actionpack-4.2.3/lib/action_dispatch/testing/assertions.rb
actionpack-4.2.3 lib/action_dispatch/testing/assertions.rb
actionpack-4.2.3.rc1 lib/action_dispatch/testing/assertions.rb