提交 d79a0109 编写于 作者: S Santiago Pastorino

Set default_internal and default_external on AS for testing purposes

上级 3c015895
......@@ -10,6 +10,14 @@
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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册