]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/i18n_test.rb
Generate valid URLs for search results with no object attached
[rails.git] / test / unit / i18n_test.rb
index c1dacbff2b63aeb09946387fd17d2f5f5873b5c6..2fb13824ca0904bfecd67964c194003161285331 100644 (file)
@@ -24,6 +24,10 @@ class I18nTest < ActiveSupport::TestCase
           end
         end
 
           end
         end
 
+        if key =~ /^(active(model|record)\.)?errors\./
+          variables.push("attribute")
+        end
+
         value = I18n.t(key, :locale => locale, :fallback => true)
 
         if value.is_a?(Hash)
         value = I18n.t(key, :locale => locale, :fallback => true)
 
         if value.is_a?(Hash)