1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed that @request.remote_ip didn't work in the test environment #369 [Bruno Mattarollo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-31 16:47:08 +00:00
parent 256d387159
commit 670fa63342

View file

@ -57,10 +57,10 @@ module ActionController #:nodoc:
end
def initialize_default_values
@host = "test.host"
@request_uri = "/"
@remote_addr = "127.0.0.1"
@env["SERVER_PORT"] = 80
@host = "test.host"
@request_uri = "/"
@remote_addr, @remote_ip = "127.0.0.1"
@env["SERVER_PORT"] = 80
end
end