]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Remove "Sign up" and "Log in" from application bar when sessions or user controller...
[rails.git] / config / initializers / i18n.rb
index 6e09300170d239d2fbc9171d90ffca06cc2d265d..266e41cbb98d501435ba985efbdba9af475c8d63 100644 (file)
@@ -42,6 +42,12 @@ I18n.fallbacks.map("no" => "nb")
 
 I18n.enforce_available_locales = false
 
+if Rails.env.test?
+  I18n.exception_handler = proc do |exception|
+    raise exception.to_exception
+  end
+end
+
 Rails.configuration.after_initialize do
   I18n.available_locales
 end