blob: 187a0e0789108820f82591010f5bbdf272995eff (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module TestRequestHelpers
def test_request(remote_ip: '127.0.0.1')
if Gitlab.rails5?
ActionController::TestRequest.new({ remote_ip: remote_ip }, ActionController::TestSession.new)
else
ActionController::TestRequest.new(remote_ip: remote_ip)
end
end
end
|