debian-mirror-gitlab/spec/support/helpers/test_request_helpers.rb
2019-07-31 17:26:46 +00:00

7 lines
238 B
Ruby

# 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