gitlab-org--gitlab-foss/spec/support/helpers/test_request_helpers.rb
2018-12-16 10:48:41 +01:00

7 lines
209 B
Ruby

# frozen_string_literal: true
module TestRequestHelpers
def test_request(remote_ip: '127.0.0.1')
ActionController::TestRequest.new({ remote_ip: remote_ip }, ActionController::TestSession.new)
end
end