aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/testing.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-23 15:45:51 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-23 15:48:01 -0700
commitf67939763460f656f4821f4b6ba72c9b47e892b3 (patch)
treed145d1b11c953348b781c6f18bf17cae16fd03df /actionpack/lib/action_controller/metal/testing.rb
parent4f7dbf50d931b8e16c566e3fe8c336c53d8189d7 (diff)
downloadrails-f67939763460f656f4821f4b6ba72c9b47e892b3.tar.gz
rails-f67939763460f656f4821f4b6ba72c9b47e892b3.tar.bz2
rails-f67939763460f656f4821f4b6ba72c9b47e892b3.zip
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.
Diffstat (limited to 'actionpack/lib/action_controller/metal/testing.rb')
-rw-r--r--actionpack/lib/action_controller/metal/testing.rb1
1 files changed, 0 insertions, 1 deletions
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