aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 13:44:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 13:44:48 +0000
commitc89c2bcbfbc5183ed6ca22e6d2d43ec506696025 (patch)
tree7fa3f2f8fa6c39ad4f6e7e81729ced5987c0e245
parent431e21cb4510900619d83302d87788f5100e05ac (diff)
downloadrails-c89c2bcbfbc5183ed6ca22e6d2d43ec506696025.tar.gz
rails-c89c2bcbfbc5183ed6ca22e6d2d43ec506696025.tar.bz2
rails-c89c2bcbfbc5183ed6ca22e6d2d43ec506696025.zip
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
-rw-r--r--actionpack/CHANGELOG5
-rw-r--r--actionpack/lib/action_controller/test_process.rb8
2 files changed, 7 insertions, 6 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index a4ca2ec3fc..ba6c7fa8bc 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -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
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 2ab955b677..1fe38136fe 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -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 \ No newline at end of file
+end