diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-28 16:25:06 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-28 16:25:06 -0300 |
commit | dc37bd778a46df8a584e27b3a1add519bbbe8ebb (patch) | |
tree | 13027097f83f256edf674012c16118da5f51db7d /actionpack/test/dispatch | |
parent | eea61a030e96625c53c57b63f0a9449850cf78df (diff) | |
download | rails-dc37bd778a46df8a584e27b3a1add519bbbe8ebb.tar.gz rails-dc37bd778a46df8a584e27b3a1add519bbbe8ebb.tar.bz2 rails-dc37bd778a46df8a584e27b3a1add519bbbe8ebb.zip |
Initialize @trusted_proxies.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/request_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index a53d4f1edd..3efed8bef6 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -474,6 +474,7 @@ protected 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) |