Permalink
Browse files

Fix translation test

  • Loading branch information...
1 parent 7a3b071 commit 0e96b0e3d3c2b28a77a87f869d52cf756c089ef1 @lifo lifo committed Apr 11, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/integration/translation_process_test.rb
@@ -47,7 +47,12 @@ def setup_locales
Tolk::Translation.delete_all
Tolk::Phrase.delete_all
- Tolk::Locale.locales_config_path = File.join(Rails.root, "test/locales/sync")
+ Tolk::Locale.locales_config_path = File.join(Rails.root, "test/locales/sync/")
+
+ I18n.backend.reload!
+ I18n.load_path = [Tolk::Locale.locales_config_path + 'en.yml']
+ I18n.backend.send :init_translations
+
Tolk::Locale.primary_locale(true)
Tolk::Locale.sync!

0 comments on commit 0e96b0e

Please sign in to comment.