diff --git a/actionpack/lib/action_controller/metal/testing.rb b/actionpack/lib/action_controller/metal/testing.rb index 4b570ba8e10355f3f9547f6c74edc422bb5c8998..b2b3b4283f1feb6c75f4a05f2c8e6694da302e21 100644 --- a/actionpack/lib/action_controller/metal/testing.rb +++ b/actionpack/lib/action_controller/metal/testing.rb @@ -2,11 +2,6 @@ module ActionController module Testing extend ActiveSupport::Concern - # TODO : Rewrite tests using controller.headers= to use Rack env - def headers=(new_headers) - @_response.headers.replace(new_headers) - end - # Behavior specific to functional tests module Functional # :nodoc: def set_response!(request) diff --git a/actionpack/test/controller/send_file_test.rb b/actionpack/test/controller/send_file_test.rb index 1eda2a010ede771a20b0628e879953320d0e3f53..c712c75c88d69a05f71c2ce1513aa56bf00df8bb 100644 --- a/actionpack/test/controller/send_file_test.rb +++ b/actionpack/test/controller/send_file_test.rb @@ -27,7 +27,6 @@ def test_send_file_headers_bang :filename => 'filename' } - self.headers = {} send_data "foo", options end @@ -38,34 +37,27 @@ def test_send_file_headers_with_disposition_as_a_symbol :filename => 'filename' } - self.headers = {} send_data "foo", options end def test_send_file_headers_with_mime_lookup_with_symbol - options = { - :type => :png - } + options = { :type => :png } - self.headers = {} send_data "foo", options end def test_send_file_headers_with_bad_symbol options = { :type => :this_type_is_not_registered } - self.headers = {} send_data "foo", options end def test_send_file_headers_with_nil_content_type options = { :type => nil } - self.headers = {} send_data "foo", options end def test_send_file_headers_guess_type_from_extension options = { :filename => params[:filename] } - self.headers = {} send_data "foo", options end