diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-11 11:51:12 +0430 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-11 16:34:52 +0200 |
commit | edbb78d6cc3ec0ce4a73b765f7bb4b7c079c8a36 (patch) | |
tree | a69fbf719be0ebf583732311dbf828827faceb82 /actionpack/test | |
parent | 44830ead1c88e1c45124133ce3e2ed9f890f42de (diff) | |
download | rails-edbb78d6cc3ec0ce4a73b765f7bb4b7c079c8a36.tar.gz rails-edbb78d6cc3ec0ce4a73b765f7bb4b7c079c8a36.tar.bz2 rails-edbb78d6cc3ec0ce4a73b765f7bb4b7c079c8a36.zip |
The previous commit didn't work with complex domains, which is now fixed.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/session/cookie_store_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb index b542824789..b4380f7818 100644 --- a/actionpack/test/dispatch/session/cookie_store_test.rb +++ b/actionpack/test/dispatch/session/cookie_store_test.rb @@ -39,7 +39,7 @@ class CookieStoreTest < ActionController::IntegrationTest session[:foo] = 'bye!' * 1024 head :ok end - + def rescue_action(e) raise end end @@ -192,28 +192,28 @@ class CookieStoreTest < ActionController::IntegrationTest 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 |