Methods
- S
- U
- W
Instance Public methods
url_for(options = {})
Link
Instance Protected methods
stub_request(env = {})
Link
# File actionpack/test/dispatch/request_test.rb, line 684 def stub_request(env = {}) ip_spoofing_check = env.key?(:ip_spoofing_check) ? env.delete(:ip_spoofing_check) : true @trusted_proxies ||= nil ip_app = ActionDispatch::RemoteIp.new(Proc.new { }, ip_spoofing_check, @trusted_proxies) tld_length = env.key?(:tld_length) ? env.delete(:tld_length) : 1 ip_app.call(env) ActionDispatch::Http::URL.tld_length = tld_length ActionDispatch::Request.new(env) end