From: Tom Hughes Date: Thu, 11 Jun 2020 18:15:38 +0000 (+0100) Subject: Check that pluralizable translations have an "other" key X-Git-Tag: live~3004 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a221aabe3c65ed5a71914f52fe959983f8afde72 Check that pluralizable translations have an "other" key --- diff --git a/test/lib/i18n_test.rb b/test/lib/i18n_test.rb index 8145c3613..1d4557c1a 100644 --- a/test/lib/i18n_test.rb +++ b/test/lib/i18n_test.rb @@ -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"