From a221aabe3c65ed5a71914f52fe959983f8afde72 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 11 Jun 2020 19:15:38 +0100 Subject: [PATCH] Check that pluralizable translations have an "other" key --- test/lib/i18n_test.rb | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.39.5