From 5568d20b2e0fdd0695d66a7406f926fc5c5c4135 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 9 Mar 2006 04:57:08 +0000 Subject: Move methods from TestResponse into a module, so they can be shared with response objects in integration tests. (This allows standard functional test assertions to be used in integration tests, like assert_response and assert_template.) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/integration_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/lib/action_controller/integration_test.rb') diff --git a/actionpack/lib/action_controller/integration_test.rb b/actionpack/lib/action_controller/integration_test.rb index 6cca3ff4a3..f99ef7ed7f 100644 --- a/actionpack/lib/action_controller/integration_test.rb +++ b/actionpack/lib/action_controller/integration_test.rb @@ -231,6 +231,11 @@ module ActionController @request = @controller.request @response = @controller.response + # Decorate the response with the standard behavior of the TestResponse + # so that things like assert_response can be used in integration + # tests. + @response.extend(TestResponseBehavior) + parse_result return status end -- cgit v1.2.3