Skip to content
Browse files

add test for bug fixed in 4f2bf64

  • Loading branch information...
1 parent 25c9e44 commit b8c85de62004868a34a27e58731f2a9e37aeebd0 @indirect indirect committed Nov 14, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/dispatch/request_test.rb
View
5 actionpack/test/dispatch/request_test.rb
@@ -89,6 +89,11 @@ def url_for(options = {})
assert_equal '9.9.9.9', request.remote_ip
end
+ test "remote ip when the remote ip middleware returns nil" do
+ request = stub_request 'REMOTE_ADDR' => '127.0.0.1'
+ assert_equal '127.0.0.1', request.remote_ip
+ end
+
test "remote ip with user specified trusted proxies" do
@trusted_proxies = /^67\.205\.106\.73$/i

0 comments on commit b8c85de

Please sign in to comment.
Something went wrong with that request. Please try again.