Skip to content

Commit

Permalink
add test for bug fixed in 4f2bf64
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 14, 2011
1 parent 25c9e44 commit b8c85de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/test/dispatch/request_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit b8c85de

Please sign in to comment.