mirror of
https://github.com/github/rails.git
synced 2026-01-25 06:18:04 -05:00
Explicitly require action_view to bring in its i18n load path
This commit is contained in:
@@ -291,6 +291,9 @@ uses_mocha 'i18n settings' do
|
||||
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"),
|
||||
|
||||
Reference in New Issue
Block a user