From f67939763460f656f4821f4b6ba72c9b47e892b3 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 23 Sep 2015 15:45:51 -0700 Subject: stop constructing a request object in this setter Since we just go through the normal test harness that sets up a request for us, we don't need to do this anymore. --- actionpack/lib/action_controller/metal/testing.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionpack/lib/action_controller/metal/testing.rb') diff --git a/actionpack/lib/action_controller/metal/testing.rb b/actionpack/lib/action_controller/metal/testing.rb index 47d940f692..4b570ba8e1 100644 --- a/actionpack/lib/action_controller/metal/testing.rb +++ b/actionpack/lib/action_controller/metal/testing.rb @@ -4,7 +4,6 @@ module ActionController # TODO : Rewrite tests using controller.headers= to use Rack env def headers=(new_headers) - @_response ||= ActionDispatch::Response.new @_response.headers.replace(new_headers) end -- cgit v1.2.3