Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_request_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 39e5dafb05961bf0a35c31003f698223637c191d (plain)
1
2
3
4
5
6
7
# frozen_string_literal: true

module TestRequestHelpers
  def test_request(remote_ip: '127.0.0.1', controller: nil)
    ActionController::TestRequest.new({ remote_ip: remote_ip }, ActionController::TestSession.new, controller)
  end
end