Permalink
Browse files

Initialize @trusted_proxies.

  • Loading branch information...
1 parent eea61a0 commit dc37bd778a46df8a584e27b3a1add519bbbe8ebb @miloops miloops committed Sep 28, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/test/dispatch/request_test.rb
View
1 actionpack/test/dispatch/request_test.rb
@@ -474,6 +474,7 @@ class RequestTest < ActiveSupport::TestCase
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)

0 comments on commit dc37bd7

Please sign in to comment.