aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/cookie_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/cookie_test.rb')
-rw-r--r--actionpack/test/controller/cookie_test.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/actionpack/test/controller/cookie_test.rb b/actionpack/test/controller/cookie_test.rb
index 2b5b1cae9f..f0189ebb11 100644
--- a/actionpack/test/controller/cookie_test.rb
+++ b/actionpack/test/controller/cookie_test.rb
@@ -28,6 +28,11 @@ class CookieTest < Test::Unit::TestCase
render_text "hello world"
end
+ def access_frozen_cookies
+ @cookies["will"] = "work"
+ render_text "hello world"
+ end
+
def rescue_action(e) raise end
end
@@ -63,8 +68,13 @@ class CookieTest < Test::Unit::TestCase
assert_equal 2, process_request.headers["cookie"].size
end
+ def test_setting_test_cookie
+ @request.action = "access_frozen_cookies"
+ assert_nothing_raised { process_request }
+ end
+
private
def process_request
TestController.process(@request, @response)
end
-end \ No newline at end of file
+end