diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-02 14:23:44 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-02 14:23:44 -0500 |
commit | 3900f4007ee6463b8936af23c04017a900673866 (patch) | |
tree | 216e69d5b5426702fe7009f3203ee897e5f92bc2 /actionpack/lib/action_controller/testing | |
parent | 3be3470fab788856b4559742434f195cc6b1009a (diff) | |
download | rails-3900f4007ee6463b8936af23c04017a900673866.tar.gz rails-3900f4007ee6463b8936af23c04017a900673866.tar.bz2 rails-3900f4007ee6463b8936af23c04017a900673866.zip |
Deprecate assert_redirect_to's partial hash matching
Diffstat (limited to 'actionpack/lib/action_controller/testing')
-rw-r--r-- | actionpack/lib/action_controller/testing/process.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/testing/process.rb b/actionpack/lib/action_controller/testing/process.rb index 8315a160ad..f62d18a1f9 100644 --- a/actionpack/lib/action_controller/testing/process.rb +++ b/actionpack/lib/action_controller/testing/process.rb @@ -45,17 +45,16 @@ module ActionController #:nodoc: end end - # Integration test methods such as ActionController::Integration::Session#get - # and ActionController::Integration::Session#post return objects of class - # TestResponse, which represent the HTTP response results of the requested - # controller actions. - # - # See Response for more information on controller response objects. class TestResponse < ActionDispatch::TestResponse def recycle! - body_parts.clear - headers.delete('ETag') - headers.delete('Last-Modified') + @status = 200 + @header = Rack::Utils::HeaderHash.new(DEFAULT_HEADERS) + @writer = lambda { |x| @body << x } + @block = nil + @length = 0 + @body = [] + + @request = @template = nil end end @@ -132,6 +131,7 @@ module ActionController #:nodoc: build_request_uri(action, parameters) Base.class_eval { include ProcessWithTest } unless Base < ProcessWithTest + @controller.process(@request, @response) end |