add test for bug fixed in 4f2bf64

This commit is contained in:
Andre Arko 2011-11-14 12:29:51 -10:00
parent 25c9e44a21
commit b8c85de620

@ -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