Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2024-01-23 18:14:28 +00:00
parent 0a5069c1c1
commit e71355c5bb
3 changed files with 2 additions and 5 deletions

View file

@ -42,7 +42,7 @@ class I18nTest < ActiveSupport::TestCase
assert_includes value, :other, "#{key}.other plural key missing"
else
assert value.is_a?(String), "#{key} is not a string"
assert_kind_of String, value, "#{key} is not a string"
value.scan(/%\{(\w+)\}/) do
assert_includes variables, Regexp.last_match(1), "#{key} uses unknown interpolation variable #{Regexp.last_match(1)}"