Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set default_internal and default_external on AM for testing purposes

  • Loading branch information...
commit e88f8bee5e8dd969e300f161643fd09e7dc089dd 1 parent 11e9883
Santiago Pastorino spastorino authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 actionmailer/test/abstract_unit.rb
9 actionmailer/test/abstract_unit.rb
@@ -11,6 +11,13 @@
$VERBOSE = old
+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"
require 'active_support/core_ext/kernel/reporting'
silence_warnings do
@@ -67,4 +74,4 @@ def set_delivery_method(method)
def restore_delivery_method
ActionMailer::Base.delivery_method = @old_delivery_method
Please sign in to comment.
Something went wrong with that request. Please try again.