aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/response_test.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2014-02-14 15:50:08 -0500
committerPrem Sichanugrist <s@sikac.hu>2014-02-18 12:11:41 -0500
commit3047376870d4a7adc7ff15c3cb4852e073c8f1da (patch)
treeacc61fe46d2367aae107de08efe04a39beec1f12 /actionpack/test/dispatch/response_test.rb
parent9fe506e3944652c3681ca27d1c2a3a559f605359 (diff)
downloadrails-3047376870d4a7adc7ff15c3cb4852e073c8f1da.tar.gz
rails-3047376870d4a7adc7ff15c3cb4852e073c8f1da.tar.bz2
rails-3047376870d4a7adc7ff15c3cb4852e073c8f1da.zip
Add `#no_content_type` attribute to `AD::Response`
Setting this attribute to `true` will remove the content type header from the request. This is use in `render :body` feature.
Diffstat (limited to 'actionpack/test/dispatch/response_test.rb')
-rw-r--r--actionpack/test/dispatch/response_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb
index 26b77dfaf7..1360ede3f8 100644
--- a/actionpack/test/dispatch/response_test.rb
+++ b/actionpack/test/dispatch/response_test.rb
@@ -238,7 +238,7 @@ class ResponseTest < ActiveSupport::TestCase
test "does not add default content-type if Content-Type is none" do
resp = ActionDispatch::Response.new.tap { |response|
- response.content_type = 'none'
+ response.no_content_type = true
}
assert_not resp.headers.has_key?('Content-Type')