diff options
author | kennyj <kennyj@gmail.com> | 2011-12-07 21:11:08 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2011-12-07 21:11:08 +0900 |
commit | 199353c658007727a428949ac11663175fb2c531 (patch) | |
tree | ecce749177a9814040ca9c429dcd540b9ad1b8d0 /railties/test | |
parent | a1986e7d55bed6895cab3d8b490f769d7abe727b (diff) | |
download | rails-199353c658007727a428949ac11663175fb2c531.tar.gz rails-199353c658007727a428949ac11663175fb2c531.tar.bz2 rails-199353c658007727a428949ac11663175fb2c531.zip |
Assign config.encoding to AD::Response.default_charset at the initialization time.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 446c85d65a..e6e2c525f5 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -136,6 +136,12 @@ module ApplicationTests assert_equal 2, ActionDispatch::Http::URL.tld_length end + test "assignment config.encoding to default_charset" do + add_to_config "config.encoding = 'Shift_JIS'" + require "#{app_path}/config/environment" + assert_equal 'Shift_JIS', ActionDispatch::Response.default_charset + end + # AS test "if there's no config.active_support.bare, all of ActiveSupport is required" do use_frameworks [] |