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