diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-24 20:02:23 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-24 20:03:03 +0200 |
commit | d69ebb849a78c07a4efc869789c4bc90e8741482 (patch) | |
tree | d3b3818d6d59dea7ea27a5eb9a6ddc605b8ab8cd /actionpack/test/dispatch | |
parent | b549d93d2f34a18971e691ff93e4c5b7b092eb14 (diff) | |
download | rails-d69ebb849a78c07a4efc869789c4bc90e8741482.tar.gz rails-d69ebb849a78c07a4efc869789c4bc90e8741482.tar.bz2 rails-d69ebb849a78c07a4efc869789c4bc90e8741482.zip |
Avoid deserializing cookies too early, which causes session objects to not be available yet. Unfortunately, could not reproduce this in a test case.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/session/cookie_store_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb index 787524ab7b..6aca22b456 100644 --- a/actionpack/test/dispatch/session/cookie_store_test.rb +++ b/actionpack/test/dispatch/session/cookie_store_test.rb @@ -205,21 +205,21 @@ class CookieStoreTest < ActionController::IntegrationTest def test_session_store_without_domain with_test_route_set do get '/set_session_value' - assert_no_match /domain\=/, headers['Set-Cookie'] + 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'] + 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'] + assert_match(/domain=\.example\.com/, headers['Set-Cookie']) end end |