diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-08 16:13:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-08 16:14:47 -0700 |
commit | fecf9d729a81c6c08fef92936e659cdfcf340be5 (patch) | |
tree | 3dba134c29b024d92f953255fd41d2a2b1aedc13 /actionpack | |
parent | a27bb77482988af58f0abd7b296fb9f5adf0d693 (diff) | |
download | rails-fecf9d729a81c6c08fef92936e659cdfcf340be5.tar.gz rails-fecf9d729a81c6c08fef92936e659cdfcf340be5.tar.bz2 rails-fecf9d729a81c6c08fef92936e659cdfcf340be5.zip |
ensure that mutating headers will impact the content_type method
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/response_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb index 3f758c31cc..5d74424de7 100644 --- a/actionpack/test/dispatch/response_test.rb +++ b/actionpack/test/dispatch/response_test.rb @@ -49,6 +49,11 @@ class ResponseTest < ActiveSupport::TestCase assert_equal 'utf-8', @response.charset end + def test_setting_content_type_header_impacts_content_type_method + @response.headers['Content-Type'] = "application/aaron" + assert_equal 'application/aaron', @response.content_type + end + test "simple output" do @response.body = "Hello, World!" |