2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module TestRequestHelpers
|
|
|
|
def test_request(remote_ip: '127.0.0.1')
|
2019-02-13 22:33:31 +05:30
|
|
|
ActionController::TestRequest.new({ remote_ip: remote_ip }, ActionController::TestSession.new)
|
2018-12-13 13:39:08 +05:30
|
|
|
end
|
|
|
|
end
|