aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-20 21:25:09 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-20 21:25:47 -0600
commit3b317b7100c9a416f4e3545f3844f0c0743acdb2 (patch)
treeb94cd268610a51756fc6418f1983a333e37420a1 /actionpack/lib/action_controller/test_process.rb
parent606cd61b9a2a710a27c2e482b5dace100cce9779 (diff)
downloadrails-3b317b7100c9a416f4e3545f3844f0c0743acdb2.tar.gz
rails-3b317b7100c9a416f4e3545f3844f0c0743acdb2.tar.bz2
rails-3b317b7100c9a416f4e3545f3844f0c0743acdb2.zip
Switch to Rack::Response#set_cookie instead of using CGI::Cookie to build cookie headers
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index c4d7d52951..45dcf8b2c2 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -260,14 +260,14 @@ module ActionController #:nodoc:
!template_objects[name].nil?
end
- # Returns the response cookies, converted to a Hash of (name => CGI::Cookie) pairs
+ # Returns the response cookies, converted to a Hash of (name => value) pairs
#
- # assert_equal ['AuthorOfNewPage'], r.cookies['author'].value
+ # assert_equal 'AuthorOfNewPage', r.cookies['author']
def cookies
cookies = {}
Array(headers['Set-Cookie']).each do |cookie|
key, value = cookie.split(";").first.split("=")
- cookies[key] = [value].compact
+ cookies[key] = value
end
cookies
end