diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-22 02:23:13 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-22 02:23:41 -0300 |
commit | d79a010976785ec42ed2b567c0f8a2e0fa7d15bf (patch) | |
tree | 8218d65351071d7c97abe23ed86427dc6198994e /activesupport | |
parent | 3c0158955ab0ac230d2f90c3b213adcee6f63117 (diff) | |
download | rails-d79a010976785ec42ed2b567c0f8a2e0fa7d15bf.tar.gz rails-d79a010976785ec42ed2b567c0f8a2e0fa7d15bf.tar.bz2 rails-d79a010976785ec42ed2b567c0f8a2e0fa7d15bf.zip |
Set default_internal and default_external on AS for testing purposes
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/abstract_unit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb index 6db21f9e12..83b25de332 100644 --- a/activesupport/test/abstract_unit.rb +++ b/activesupport/test/abstract_unit.rb @@ -10,6 +10,14 @@ end lib = File.expand_path("#{File.dirname(__FILE__)}/../lib") $:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) +require 'active_support/core_ext/string/encoding' +if "ruby".encoding_aware? + # These are the normal settings that will be set up by Railties + # TODO: Have these tests support other combinations of these values + Encoding.default_internal = "UTF-8" + Encoding.default_external = "UTF-8" +end + require 'test/unit' require 'active_support/core_ext/kernel/reporting' require 'empty_bool' |