aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/integration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/integration_test.rb')
-rw-r--r--actionpack/lib/action_controller/integration_test.rb5
1 files changed, 5 insertions, 0 deletions
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