diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-21 22:53:04 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-21 22:53:04 -0300 |
commit | 3c0158955ab0ac230d2f90c3b213adcee6f63117 (patch) | |
tree | f1041e854f202227755f6bf70b4caed92b81bca9 | |
parent | 1d888d465b27e6257ebd3af9b4e73e9f49a45de1 (diff) | |
download | rails-3c0158955ab0ac230d2f90c3b213adcee6f63117.tar.gz rails-3c0158955ab0ac230d2f90c3b213adcee6f63117.tar.bz2 rails-3c0158955ab0ac230d2f90c3b213adcee6f63117.zip |
Set default_internal and default_external on AM for testing purposes
-rw-r--r-- | actionmailer/test/abstract_unit.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index ea15709b45..d91c81886d 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -11,6 +11,13 @@ ensure $VERBOSE = old end +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 'active_support/core_ext/kernel/reporting' silence_warnings do @@ -67,4 +74,4 @@ end def restore_delivery_method ActionMailer::Base.delivery_method = @old_delivery_method -end
\ No newline at end of file +end |