diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-10 20:05:48 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-10 20:08:01 +0200 |
commit | 330a89072a493aafef1e07c3558964477f85adf0 (patch) | |
tree | 4bcdcaf5ab5123ca425bdc3fd8bfe98f4b558441 /actionpack/test | |
parent | d93b45e8d32e3c4917c6b16bcea3a694800d2c49 (diff) | |
download | rails-330a89072a493aafef1e07c3558964477f85adf0.tar.gz rails-330a89072a493aafef1e07c3558964477f85adf0.tar.bz2 rails-330a89072a493aafef1e07c3558964477f85adf0.zip |
Revert "Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [#4818 state:resolved]"
It does not work for domains like co.uk and com.br.
This reverts commit c4d6245e875bbb276c122a5a401422d341dac4df.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/session/cookie_store_test.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb index b542824789..21d11ff31c 100644 --- a/actionpack/test/dispatch/session/cookie_store_test.rb +++ b/actionpack/test/dispatch/session/cookie_store_test.rb @@ -185,35 +185,6 @@ class CookieStoreTest < ActionController::IntegrationTest end end - def test_session_store_with_explicit_domain - with_test_route_set(:domain => "example.es") do - get '/set_session_value' - assert_match /domain=example\.es/, headers['Set-Cookie'] - headers['Set-Cookie'] - end - end - - def test_session_store_without_domain - with_test_route_set do - get '/set_session_value' - assert_no_match /domain\=/, headers['Set-Cookie'] - end - end - - def test_session_store_with_nil_domain - with_test_route_set(:domain => nil) do - get '/set_session_value' - assert_no_match /domain\=/, headers['Set-Cookie'] - end - end - - def test_session_store_with_all_domains - with_test_route_set(:domain => :all) do - get '/set_session_value' - assert_match /domain=\.example\.com/, headers['Set-Cookie'] - end - end - private # Overwrite get to send SessionSecret in env hash |