From c89c2bcbfbc5183ed6ca22e6d2d43ec506696025 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Feb 2005 13:44:48 +0000 Subject: 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 --- actionpack/CHANGELOG | 5 +++++ actionpack/lib/action_controller/test_process.rb | 8 ++------ 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 -- cgit v1.2.3