diff options
author | moro <moronatural@gmail.com> | 2009-02-14 11:08:43 +0900 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-02-21 21:11:50 -0800 |
commit | b6c8379834cb10564349967b08012b87d1f4fe0e (patch) | |
tree | 24766eb8c259a8ef96cdaa17d8c53bb2ef6b618b /actionpack | |
parent | 06040849b5a680c2a87893699580f9b9b80f72e4 (diff) | |
download | rails-b6c8379834cb10564349967b08012b87d1f4fe0e.tar.gz rails-b6c8379834cb10564349967b08012b87d1f4fe0e.tar.bz2 rails-b6c8379834cb10564349967b08012b87d1f4fe0e.zip |
Expected cookie value should also be escaped.
Ruby 1.9 compat for test.
[#1965 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/session/cookie_store_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/session/cookie_store_test.rb b/actionpack/test/controller/session/cookie_store_test.rb index c94d7b0915..9c93ca6539 100644 --- a/actionpack/test/controller/session/cookie_store_test.rb +++ b/actionpack/test/controller/session/cookie_store_test.rb @@ -23,7 +23,7 @@ class CookieStoreTest < ActionController::IntegrationTest def set_session_value session[:foo] = "bar" - render :text => Verifier.generate(session.to_hash) + render :text => Rack::Utils.escape(Verifier.generate(session.to_hash)) end def get_session_value |