mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixed that cookies shouldn't be frozen in TestRequest #571 [Eric Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
*SVN*
|
||||
|
||||
* Fixed that cookies shouldn't be frozen in TestRequest #571 [Eric Hodel]
|
||||
|
||||
|
||||
*1.4.0* (January 25th, 2005)
|
||||
|
||||
* Fixed problems with ActiveRecordStore under the development environment in Rails
|
||||
|
||||
@@ -30,7 +30,7 @@ module ActionController #:nodoc:
|
||||
end
|
||||
|
||||
class TestRequest < AbstractRequest #:nodoc:
|
||||
attr_writer :cookies
|
||||
attr_accessor :cookies
|
||||
attr_accessor :query_parameters, :request_parameters, :session, :env
|
||||
attr_accessor :host, :path, :request_uri, :remote_addr
|
||||
|
||||
@@ -49,10 +49,6 @@ module ActionController #:nodoc:
|
||||
@session = {}
|
||||
end
|
||||
|
||||
def cookies
|
||||
@cookies.freeze
|
||||
end
|
||||
|
||||
def port=(number)
|
||||
@env["SERVER_PORT"] = number.to_i
|
||||
end
|
||||
@@ -257,4 +253,4 @@ module Test
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user