]> git.openstreetmap.org Git - rails.git/blobdiff - test/lib/i18n_test.rb
Check that pluralizable translations have an "other" key
[rails.git] / test / lib / i18n_test.rb
index 8145c3613db0812a9d4e427bc8006dee1049e3ac..1d4557c1ae3c5d081ca6fbd4e6f0e5b398703186 100644 (file)
@@ -39,6 +39,8 @@ class I18nTest < ActiveSupport::TestCase
                 assert_includes variables, Regexp.last_match(1), "#{key}.#{subkey} uses unknown interpolation variable #{Regexp.last_match(1)}"
               end
             end
+
+            assert_includes value, :other, "#{key}.other plural key missing"
           else
             assert value.is_a?(String), "#{key} is not a string"