Check that pluralizable translations have an "other" key

This commit is contained in:
Tom Hughes 2020-06-11 19:15:38 +01:00
parent ef7434f8b4
commit a221aabe3c

View 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"