summaryrefslogtreecommitdiff
path: root/test/spec_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec_request.rb')
-rw-r--r--test/spec_request.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/spec_request.rb b/test/spec_request.rb
index 6de19322..67e8338c 100644
--- a/test/spec_request.rb
+++ b/test/spec_request.rb
@@ -930,6 +930,11 @@ EOF
res.body.should.equal '1.2.3.4'
res = mock.get '/',
+ 'REMOTE_ADDR' => '1.2.3.4',
+ 'HTTP_X_FORWARDED_FOR' => 'unknown'
+ res.body.should.equal '1.2.3.4'
+
+ res = mock.get '/',
'REMOTE_ADDR' => '127.0.0.1',
'HTTP_X_FORWARDED_FOR' => '3.4.5.6'
res.body.should.equal '3.4.5.6'