Browse files

Expand paths in i18n initializer tests

  • Loading branch information...
1 parent c296b33 commit 3971d972c304272dbbd88d5d5df14b5739e801a2 @josh josh committed Oct 16, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/initializer/initialize_i18n_test.rb
View
4 railties/test/initializer/initialize_i18n_test.rb
@@ -25,7 +25,7 @@ def setup
#{RAILS_FRAMEWORK_ROOT}/actionpack/lib/action_view/locale/en.yml
#{RAILS_FRAMEWORK_ROOT}/railties/tmp/app/config/locales/en.yml
my/other/locale.yml
- ), I18n.load_path
+ ).map { |path| File.expand_path(path) }, I18n.load_path.map { |path| File.expand_path(path) }
end
test "i18n finds locale files in engines" do
@@ -49,7 +49,7 @@ def setup
#{app_path}/config/locales/en.yml
my/other/locale.yml
#{app_path}/vendor/plugins/engine/config/locales/en.yml
- ), I18n.load_path
+ ).map { |path| File.expand_path(path) }, I18n.load_path.map { |path| File.expand_path(path) }
end
end
end

0 comments on commit 3971d97

Please sign in to comment.