debian-mirror-gitlab/spec/support/helpers/test_request_helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
238 B
Ruby
Raw Normal View History

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