diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-02 08:54:25 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-02 08:54:25 +0000 |
commit | ce96c5b30b52a1b2d1628d6e605e7989f9eea023 (patch) | |
tree | b70ff91977e03e3fac267392a955bce4660f5da5 /actionpack/test/controller/cookie_test.rb | |
parent | 1ba1779754965da9b0cff73d37905b71928d3598 (diff) | |
download | rails-ce96c5b30b52a1b2d1628d6e605e7989f9eea023.tar.gz rails-ce96c5b30b52a1b2d1628d6e605e7989f9eea023.tar.bz2 rails-ce96c5b30b52a1b2d1628d6e605e7989f9eea023.zip |
Added assert_no_cookie and fixed assert_cookie_equal to deal with non-existing cookies #979 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/cookie_test.rb')
-rw-r--r-- | actionpack/test/controller/cookie_test.rb | 12 |
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 |