From 58f92caa19ec59fd1773b17356093c65ff3d655e Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Mon, 17 Jan 2005 18:28:01 +0000 Subject: [PATCH] Removed code that made it into Rails SVN --- test/test_helper.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index e65c143b..ab0f03b4 100755 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -33,22 +33,6 @@ class WikiServiceWithNoPersistence end -# With the new cookies infrastructure, @response.cookies['foo'] is no good anymore. -# Pending implementation in Rails, here is a convenience method for accessing cookies from a test - -module ActionController - class TestResponse - # Returns the response cookies, converted to a Hash of (name => CGI::Cookie) pairs - # Example: - # - # assert_equal ['AuthorOfNewPage'], r.cookies['author'].value - def cookies - headers['cookie'].inject({}) { |hash, cookie| hash[cookie.name] = cookie; hash } - end - end -end - - # This module is to be included in unit tests that involve matching chunks. # It provides a easy way to test whether a chunk matches a particular string # and any the values of any fields that should be set after a match.