aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorMatias Korhonen <matias@kiskolabs.com>2011-05-03 16:30:59 +0300
committerMatias Korhonen <matias@kiskolabs.com>2011-05-03 16:30:59 +0300
commit49b825e502d57f10aa2cee10c1d631a95f3cef64 (patch)
treeb26a52e2e31bab2314a42b6f03ea53d98d71e780 /actionpack/test/dispatch
parentc7f7a45676f929195d6b12824acd7f200610e081 (diff)
downloadrails-49b825e502d57f10aa2cee10c1d631a95f3cef64.tar.gz
rails-49b825e502d57f10aa2cee10c1d631a95f3cef64.tar.bz2
rails-49b825e502d57f10aa2cee10c1d631a95f3cef64.zip
Sets the HTTP charset parameter for rescue response.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/show_exceptions_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb
index e453dd11ce..cc57a6cba0 100644
--- a/actionpack/test/dispatch/show_exceptions_test.rb
+++ b/actionpack/test/dispatch/show_exceptions_test.rb
@@ -137,4 +137,11 @@ class ShowExceptionsTest < ActionDispatch::IntegrationTest
assert_response 500
assert_match(/RuntimeError\n in FeaturedTilesController/, body)
end
+
+ test "sets the HTTP charset parameter" do
+ @app = DevelopmentApp
+
+ get "/", {}, {'action_dispatch.show_exceptions' => true}
+ assert_equal "text/html; charset=utf-8", response.headers["Content-Type"]
+ end
end