Permalink
Browse files

Expected cookie value should also be escaped.

Ruby 1.9 compat for test.

[#1965 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 0604084 commit b6c8379834cb10564349967b08012b87d1f4fe0e @moro moro committed with jeremy Feb 14, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/controller/session/cookie_store_test.rb
@@ -23,7 +23,7 @@ def persistent_session_id
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

0 comments on commit b6c8379

Please sign in to comment.