diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-23 15:45:51 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-23 15:48:01 -0700 |
commit | f67939763460f656f4821f4b6ba72c9b47e892b3 (patch) | |
tree | d145d1b11c953348b781c6f18bf17cae16fd03df /actionpack | |
parent | 4f7dbf50d931b8e16c566e3fe8c336c53d8189d7 (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_controller/metal/testing.rb | 1 |
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 |