diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-06-17 00:58:50 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-06-17 00:58:50 +0300 |
commit | 422292dc98cf42b20758025bf55b5b84260aecb4 (patch) | |
tree | 7580a19594ef6b6d436e86dd982d1a6677f824a3 /actionpack/test | |
parent | af01f45f068ea382257090ec8a3aa2579e56dbdc (diff) | |
download | rails-422292dc98cf42b20758025bf55b5b84260aecb4.tar.gz rails-422292dc98cf42b20758025bf55b5b84260aecb4.tar.bz2 rails-422292dc98cf42b20758025bf55b5b84260aecb4.zip |
Document, refactor and create test case for ActionDispatch::Response#charset= method
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/response_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb index 7aca251066..f7e7241382 100644 --- a/actionpack/test/dispatch/response_test.rb +++ b/actionpack/test/dispatch/response_test.rb @@ -42,6 +42,13 @@ class ResponseTest < ActiveSupport::TestCase assert_equal Encoding::UTF_8, response.body.encoding end + def test_response_charset_writer + @response.charset = 'utf-16' + assert_equal 'utf-16', @response.charset + @response.charset = nil + assert_equal 'utf-8', @response.charset + end + test "simple output" do @response.body = "Hello, World!" |