diff options
author | Jamis Buck <jamis@37signals.com> | 2005-07-12 16:16:13 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-07-12 16:16:13 +0000 |
commit | 847f738cfd8acf5db065cd9bb1ca3d47a7676fa3 (patch) | |
tree | 32e10136d0b8902ad0d8d6f9a62d0fb54099c623 /actionpack/test | |
parent | fae7311b9c01aa07e7c0851bb602698e4f05273b (diff) | |
download | rails-847f738cfd8acf5db065cd9bb1ca3d47a7676fa3.tar.gz rails-847f738cfd8acf5db065cd9bb1ca3d47a7676fa3.tar.bz2 rails-847f738cfd8acf5db065cd9bb1ca3d47a7676fa3.zip |
Make Request#subdomains handle "foo.foo.com" correctly
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1817 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 8980ac7520..8b079df5dd 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -55,6 +55,9 @@ class RequestTest < Test::Unit::TestCase @request.host = "dev.www.rubyonrails.co.uk" assert_equal %w( dev www ), @request.subdomains(2) + + @request.host = "foobar.foobar.com" + assert_equal %w( foobar ), @request.subdomains end def test_port_string |