module Rails
  module Controller
    module Testing
      module Integration
        %w(
          get post patch put head delete xml_http_request
          xhr get_via_redirect post_via_redirect
        ).each do |method|

          define_method(method) do |*args|
            reset_template_assertion
            super(*args)
          end
        end
      end
    end
  end
end

module Rails
  module Controller
    module Testing
      module Integration
        %w(
          get post patch put head delete
          get_via_redirect post_via_redirect
        ).each do |method|

          define_method(method) do |*args|
            reset_template_assertion
            super(*args)
          end
        end
      end
    end
  end
end

Remove xhr and xml_http_request due to rails 5 deprecation warning
Remove xhr and xml_http_request due to rails 5 deprecation warning
