Set default_internal and default_external on AM for testing purposes

This commit is contained in:
Santiago Pastorino 2010-08-21 22:53:04 -03:00
parent 1d888d465b
commit 3c0158955a
1 changed files with 8 additions and 1 deletions

View File

@ -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
end