1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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