- value.scan(/%\{(\w+)\}/) do
- assert variables.include?(Regexp.last_match(1)), "#{key} uses unknown interpolation variable #{Regexp.last_match(1)}"
+ assert_includes value, :other, "#{key}.other plural key missing"
+ else
+ assert value.is_a?(String), "#{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)}"
+ end