diff options
author | Jamis Buck <jamis@37signals.com> | 2005-09-02 09:10:31 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-09-02 09:10:31 +0000 |
commit | 6c44d35268d66374c5e2f0337183d5255c499a3c (patch) | |
tree | 5f9ba8c8de57b55b21d7a4b29759e6eace997394 /actionpack/test | |
parent | d54aea29fc46bbf222abc3774569d074354273b2 (diff) | |
download | rails-6c44d35268d66374c5e2f0337183d5255c499a3c.tar.gz rails-6c44d35268d66374c5e2f0337183d5255c499a3c.tar.bz2 rails-6c44d35268d66374c5e2f0337183d5255c499a3c.zip |
AbstractRequest#domain returns nil when host is an ip address #2012 [kevin.clark@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 8b079df5dd..5bb5bc3469 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -44,6 +44,9 @@ class RequestTest < Test::Unit::TestCase @request.host = "www.rubyonrails.co.uk" assert_equal "rubyonrails.co.uk", @request.domain(2) + + @request.host = "192.168.1.200" + assert_nil @request.domain end def test_subdomains |