Sha256: daae37901d9b792663e9e54ba1551611052a8e12a2c96cf13510fa96eafebdd2

Contents?: true

Size: 535 Bytes

Versions: 4

Compression:

Stored size: 535 Bytes

Contents

require 'action_pack'

module Rails
  module Controller
    module Testing
      module Integration
        http_verbs = %w(get post patch put head delete)

        if ActionPack.version < Gem::Version.new('5.1')
          http_verbs.push('xhr', 'xml_http_request', 'get_via_redirect', 'post_via_redirect')
        end

        http_verbs.each do |method|
          define_method(method) do |*args, **kwargs|
            reset_template_assertion
            super(*args, **kwargs)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing/integration.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing/integration.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rails-controller-testing-1.0.5/lib/rails/controller/testing/integration.rb
rails-controller-testing-1.0.5 lib/rails/controller/testing/integration.rb