Permalink
Browse files

Make ActionPack specs work when I18n 0.3.3 is installed as gem.

  • Loading branch information...
1 parent 1012dec commit 319e4aa2632f4d3bd728002232ba09cd4c04328d @josevalim josevalim committed Jan 4, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/abstract_unit.rb
@@ -32,9 +32,9 @@
ActionController::Base.session_store = nil
-# Register danish language for testing
-I18n.backend.store_translations 'da', {}
-I18n.backend.store_translations 'pt-BR', {}
+# Register languages for testing
+I18n.backend.store_translations 'da', "da" => {}
+I18n.backend.store_translations 'pt-BR', "pt-BR" => {}
ORIGINAL_LOCALES = I18n.available_locales.map(&:to_s).sort
FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), 'fixtures')

0 comments on commit 319e4aa

Please sign in to comment.