aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index ebbb66b4ec..999a551808 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -60,6 +60,10 @@ module ActionController #:nodoc:
@env['REMOTE_ADDR'] = addr
end
+ def remote_addr
+ @env['REMOTE_ADDR']
+ end
+
def request_uri
@request_uri || super()
end