提交 d40bc307 编写于 作者: J Jeremy Kemper

Explicitly require action_view to bring in its i18n load path

上级 36dcfcf1
......@@ -291,6 +291,9 @@ def test_config_defaults_and_settings_should_be_added_to_i18n_defaults
config = Rails::Configuration.new
config.i18n.load_path << "my/other/locale.yml"
# To bring in AV's i18n load path.
require 'action_view'
Rails::Initializer.run(:initialize_i18n, config)
assert_equal [
File.expand_path("./test/../../activesupport/lib/active_support/locale/en.yml"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册