Removed code that made it into Rails SVN
This commit is contained in:
parent
57df455d1d
commit
58f92caa19
1 changed files with 0 additions and 16 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue